c0.go

 1package ansi
 2
 3// C0 control characters.
 4//
 5// These range from (0x00-0x1F) as defined in ISO 646 (ASCII).
 6// See: https://en.wikipedia.org/wiki/C0_and_C1_control_codes
 7const (
 8	// NUL is the null character (Caret: ^@, Char: \0).
 9	NUL = 0x00
10	// SOH is the start of heading character (Caret: ^A).
11	SOH = 0x01
12	// STX is the start of text character (Caret: ^B).
13	STX = 0x02
14	// ETX is the end of text character (Caret: ^C).
15	ETX = 0x03
16	// EOT is the end of transmission character (Caret: ^D).
17	EOT = 0x04
18	// ENQ is the enquiry character (Caret: ^E).
19	ENQ = 0x05
20	// ACK is the acknowledge character (Caret: ^F).
21	ACK = 0x06
22	// BEL is the bell character (Caret: ^G, Char: \a).
23	BEL = 0x07
24	// BS is the backspace character (Caret: ^H, Char: \b).
25	BS = 0x08
26	// HT is the horizontal tab character (Caret: ^I, Char: \t).
27	HT = 0x09
28	// LF is the line feed character (Caret: ^J, Char: \n).
29	LF = 0x0A
30	// VT is the vertical tab character (Caret: ^K, Char: \v).
31	VT = 0x0B
32	// FF is the form feed character (Caret: ^L, Char: \f).
33	FF = 0x0C
34	// CR is the carriage return character (Caret: ^M, Char: \r).
35	CR = 0x0D
36	// SO is the shift out character (Caret: ^N).
37	SO = 0x0E
38	// SI is the shift in character (Caret: ^O).
39	SI = 0x0F
40	// DLE is the data link escape character (Caret: ^P).
41	DLE = 0x10
42	// DC1 is the device control 1 character (Caret: ^Q).
43	DC1 = 0x11
44	// DC2 is the device control 2 character (Caret: ^R).
45	DC2 = 0x12
46	// DC3 is the device control 3 character (Caret: ^S).
47	DC3 = 0x13
48	// DC4 is the device control 4 character (Caret: ^T).
49	DC4 = 0x14
50	// NAK is the negative acknowledge character (Caret: ^U).
51	NAK = 0x15
52	// SYN is the synchronous idle character (Caret: ^V).
53	SYN = 0x16
54	// ETB is the end of transmission block character (Caret: ^W).
55	ETB = 0x17
56	// CAN is the cancel character (Caret: ^X).
57	CAN = 0x18
58	// EM is the end of medium character (Caret: ^Y).
59	EM = 0x19
60	// SUB is the substitute character (Caret: ^Z).
61	SUB = 0x1A
62	// ESC is the escape character (Caret: ^[, Char: \e).
63	ESC = 0x1B
64	// FS is the file separator character (Caret: ^\).
65	FS = 0x1C
66	// GS is the group separator character (Caret: ^]).
67	GS = 0x1D
68	// RS is the record separator character (Caret: ^^).
69	RS = 0x1E
70	// US is the unit separator character (Caret: ^_).
71	US = 0x1F
72
73	// LS0 is the locking shift 0 character.
74	// This is an alias for [SI].
75	LS0 = SI
76	// LS1 is the locking shift 1 character.
77	// This is an alias for [SO].
78	LS1 = SO
79)