Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Namespace

control_code

Public Namespace
std.ascii.control_code
pub const control_code = struct

The C0 control codes of the ASCII encoding.

See also: https://en.wikipedia.org/wiki/C0_and_C1_control_codes and isControl

Values

  • pub const nul

    Null.

  • pub const soh

    Start of Heading.

  • pub const stx

    Start of Text.

  • pub const etx

    End of Text.

  • pub const eot

    End of Transmission.

  • pub const enq

    Enquiry.

  • pub const ack

    Acknowledge.

  • pub const bel

    Bell, Alert.

  • pub const bs

    Backspace.

  • pub const ht

    Horizontal Tab, Tab ('\t').

  • pub const lf

    Line Feed, Newline ('\n').

  • pub const vt

    Vertical Tab.

  • pub const ff

    Form Feed.

  • pub const cr

    Carriage Return ('\r').

  • pub const so

    Shift Out.

  • pub const si

    Shift In.

  • pub const dle

    Data Link Escape.

  • pub const dc1

    Device Control One (XON).

  • pub const dc2

    Device Control Two.

  • pub const dc3

    Device Control Three (XOFF).

  • pub const dc4

    Device Control Four.

  • pub const nak

    Negative Acknowledge.

  • pub const syn

    Synchronous Idle.

  • pub const etb

    End of Transmission Block

  • pub const can

    Cancel.

  • pub const em

    End of Medium.

  • pub const sub

    Substitute.

  • pub const esc

    Escape.

  • pub const fs

    File Separator.

  • pub const gs

    Group Separator.

  • pub const rs

    Record Separator.

  • pub const us

    Unit Separator.

  • pub const del

    Delete.

  • pub const xon

    Device Control One (XON).

  • pub const xoff

    Device Control Three (XOFF).

File

ascii.zig:20
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
pub const control_code = struct {
    /// Null.
    pub const nul = 0x00;
    /// Start of Heading.
    pub const soh = 0x01;
    /// Start of Text.
    pub const stx = 0x02;
    /// End of Text.
    pub const etx = 0x03;
    /// End of Transmission.
    pub const eot = 0x04;
    /// Enquiry.
    pub const enq = 0x05;
    /// Acknowledge.
    pub const ack = 0x06;
    /// Bell, Alert.
    pub const bel = 0x07;
    /// Backspace.
    pub const bs = 0x08;
    /// Horizontal Tab, Tab ('\t').
    pub const ht = 0x09;
    /// Line Feed, Newline ('\n').
    pub const lf = 0x0A;
    /// Vertical Tab.
    pub const vt = 0x0B;
    /// Form Feed.
    pub const ff = 0x0C;
    /// Carriage Return ('\r').
    pub const cr = 0x0D;
    /// Shift Out.
    pub const so = 0x0E;
    /// Shift In.
    pub const si = 0x0F;
    /// Data Link Escape.
    pub const dle = 0x10;
    /// Device Control One (XON).
    pub const dc1 = 0x11;
    /// Device Control Two.
    pub const dc2 = 0x12;
    /// Device Control Three (XOFF).
    pub const dc3 = 0x13;
    /// Device Control Four.
    pub const dc4 = 0x14;
    /// Negative Acknowledge.
    pub const nak = 0x15;
    /// Synchronous Idle.
    pub const syn = 0x16;
    /// End of Transmission Block
    pub const etb = 0x17;
    /// Cancel.
    pub const can = 0x18;
    /// End of Medium.
    pub const em = 0x19;
    /// Substitute.
    pub const sub = 0x1A;
    /// Escape.
    pub const esc = 0x1B;
    /// File Separator.
    pub const fs = 0x1C;
    /// Group Separator.
    pub const gs = 0x1D;
    /// Record Separator.
    pub const rs = 0x1E;
    /// Unit Separator.
    pub const us = 0x1F;

    /// Delete.
    pub const del = 0x7F;

    /// An alias to `dc1`.
    pub const xon = dc1;
    /// An alias to `dc3`.
    pub const xoff = dc3;
}