
Table 3: Cursor Positioning Commands
COMMAND
HEX VALUE
FUNCTION
ESC * p # Y
1B 2A 70 # 59
Vertical Position
A value field (#) with a plus sign (+) indicates
the new position is to the right of and relative
to the current cursor position; a minus sign (-)
indicates the new position is upward and
relative to the current cursor position. No sign
indicates an absolute position.
# = Number of Dots
ESC * p # X
1B 2A 70 # 58
Horizontal Position
A value field (#) with a plus sign (+) indicates
the new position is downward from and
relative to the current cursor position; a minus
sign (-) indicates the new position is to the left
of and relative to the current cursor position.
No sign indicates an absolute position.
# = Number of Dots
ESC & l # X
1B 26 6C # 58
Number of Copies
# = Number of copies 1 to 999
ESC =
1B 3D
Half Line Feed
LF 0A
Line
Feed
FF 0C
Form
Feed
CR 0D
Carriage
Return
ESC & k # G
1B 26 6B # 47
Line Termination
# = 0 : CR=CR; LF=LF; FF=FF
# = 1 : CR=CR+LF; LF=LF; FF=FF
# = 2 : CR=CR; LF=CR+LF; FF=CR+FF
# = 3 : CR=CR+LF; LF=CR+LF; FF=CR+FF
ESC & f # S
1B 26 66 # 53
Push/Pop Cursor Position
# = 0 : Push (Store cursor position)
# = 0 : Pop (Recall cursor position)