ESCape Sequence Codes
Function
ASCII
Decimal
Hexadecimal
End command
NUL
0
00
Sound beeper
BEL
7
07
Backspace one character
BS
8
08
Horizontal tab control;
move to next tab
HT
9
09
Perform line feed
LF
10
0A
Vertical tab control;
move to next tab
VT
11
0B
Perform form feed
FF
12
0C
Perform carriage return
CR
13
0D
Set double-wide mode
by line
SO
14
0E
Set condensed mode
(17 cpi); cancelled by
DC2
SI
15
0F
Set printer on-line
DC1
17
11
Cancel condensed
mode (17 cpi) set
by SI
DC2
18
12
Set printer off-line
DC3
19
13
Cancel double-wide
mode
DC4
20
14
Cancel data
CAN
24
18
Start escape sequence
ESC
27
1B
Insert space
SP
32
20
Delete character
DEL
127
74
Function
ASCII
Decimal
Hexadecimal
Set double-wide mode by
line
ESC SO
27 14
1B 0E
Set condensed mode
ESC SI
27 15
1B 0F
Control sheet feeder
n Setting
R Eject paper
ESC EM n
27 25 n
1B 19 n
Set intercharacter space
ESC SP n
27 32 n
1B 20 n
Set/cancel various print
modes (Master Select)
ESC ! n
27 33 n
1B 21 n
Cancel most significant
bit (MSB) control
ESC #
27 35
1B 23
Set absolute print position
ESC $ n1 n2 27 36 n1 n2
1B 24 n1 n2
Select download character
ESC % n
27 37 n
1B 25 n