ESC/ P Legacy Command Reference

Table Of Contents
ESC/P Legacy Command Reference
- 39 -
5. Control Command Details
ESC Apply/cancel underlining
ASCII: ESC - n
Decimal: 27 45 n
Hexadecimal: 1B 2D n
Function
Specifies or cancels underlining of alphanumeric characters.
Details
n = 00h or 30h: Cancel underlining
n = 01h or 31h: Apply underlining
Underline position: No character limitations (45th line)
No underlining when the print position is moved with ESC $, ESC \ or HT
ESC SP Specify character spacing
ASCII: ESC SP n
Decimal: 27 32 n
Hexadecimal: 1B 20 n
Function
Specifies the amount of character spacing for alphanumeric characters.
Details
Since the spacing is the remainder from dividing n by 128, 0 to 127 is the normal range of parameters
that are used.
The default is 0.
The units for the spacing are 1/180 inch.