Skip to main content

Module c1

Module c1 

Source
Expand description

C1 control bytes (0x80..=0x9f).

§Category

C1 controls are the 8-bit single-byte forms of terminal controls such as DCS, CSI, ST, OSC, PM, and APC.

§7-bit versus 8-bit forms

Each C1 byte has a 7-bit fallback spelling ESC followed by byte - 0x40. For example, CSI is 0x9b while the 7-bit CSI introducer is the two-byte sequence ESC [.

8-bit:  9B        CSI
7-bit:  1B 5B     ESC [
       ─┬ ─┬
       ESC final

§Mode interaction

The byte constants do not enable any terminal mode. The tokenizer recognizes the C1 introducers directly and also recognizes their 7-bit ESC forms.

Constants§

APC
Application Program Command introducer byte 0x9f; 7-bit spelling is ESC _.
BPH
Break Permitted Here C1 control byte 0x82.
CCH
Cancel Character C1 control byte 0x94.
CSI
Control Sequence Introducer byte 0x9b; 7-bit spelling is ESC [.
DCS
Device Control String introducer byte 0x90; 7-bit spelling is ESC P and terminator is ST.
EPA
End of Protected Area C1 control byte 0x97.
ESA
End of Selected Area C1 control byte 0x87.
HOP
High Octet Preset C1 control byte 0x81.
HTJ
Horizontal Tab with Justify C1 control byte 0x89.
HTS
Horizontal Tab Set C1 control byte 0x88; 7-bit spelling is ESC H.
IND
Index C1 control byte 0x84; 7-bit spelling is ESC D.
MW
Message Waiting C1 control byte 0x95.
NBH
No Break Here C1 control byte 0x83.
NEL
Next Line C1 control byte 0x85; 7-bit spelling is ESC E.
OSC
Operating System Command introducer byte 0x9d; 7-bit spelling is ESC ].
PAD
Padding Character C1 control byte 0x80.
PLD
Partial Line Down C1 control byte 0x8b.
PLU
Partial Line Up C1 control byte 0x8c.
PM
Privacy Message introducer byte 0x9e; 7-bit spelling is ESC ^.
PU1
Private Use 1 C1 control byte 0x91.
PU2
Private Use 2 C1 control byte 0x92.
RI
Reverse Index C1 control byte 0x8d; 7-bit spelling is ESC M.
SCI
Single Character Introducer C1 control byte 0x9a.
SGCI
Single Graphic Character Introducer C1 control byte 0x99.
SOS
Start of String introducer byte 0x98; 7-bit spelling is ESC X.
SPA
Start of Protected Area C1 control byte 0x96.
SS2
Single Shift 2 C1 control byte 0x8e; 7-bit spelling is ESC N.
SS3
Single Shift 3 C1 control byte 0x8f; 7-bit spelling is ESC O.
SSA
Start of Selected Area C1 control byte 0x86.
ST
String Terminator byte 0x9c; 7-bit spelling is ESC \.
STS
Set Transmit State C1 control byte 0x93.
VTS
Vertical Tab Set C1 control byte 0x8a.