ESC/ P Command Reference
Table Of Contents
- Chapter 1. General Information
- Chapter 2. Command information
- 2-1) Character/style selection commands
- 2-2) Text printing commands
- ESC 4 Apply italic style
- ESC 5 Cancel italic style
- ESC E Apply bold style
- ESC F Cancel bold style
- ESC G Specify double printing
- ESC H Cancel double printing
- ESC P Specify pica pitch
- ESC M Specify elite pitch
- ESC g Specify micron pitch
- ESC p Specify proportional characters
- ESC W Specify double-width characters
- SO Specify auto-cancelling enlarged characters
- ESC SO Specify auto-cancelling enlarged characters
- SI Specify half-width characters
- ESC SI Specify half-width characters
- DC2 Cancel half-width characters
- DC4 Cancel auto-cancelling double-width characters
- ESC - Apply/cancel underlining
- ESC ! Global formatting
- ESC SP Select character spacing for ANK characters
- ESC X Select alphanumeric/kana character size
- 2-3) Line feed amount commands
- 2-4) Horizontal movement commands
- 2-5) Vertical movement commands
- 2-6) Paper formatting
- 2-7) Printer control commands
- 2-8) Graphics commands
- 2-9) Advanced commands
- Chapter 3. Appendix
DC4 Cancel auto-cancelling double-width characters
[ASCII] DC4
[Decimal] 20
[Hexadecimal] 14
[Parameters] None
[Description]
・ Cancels the double-width characters specified using ESC SO or SO.
ESC - Apply/cancel underlining
[ASCII] ESC - n
[Decimal] 27 45 n
[Hexadecimal] 1B 2D n
[Parameters] n=0, 1, 2, 3, 4
[Description]
・ Applies and cancels underlining.
・ If n=4, underlining with a width of 4 dots is applied. **
・ If n=3, underlining with a width of 3 dots is applied. **
・ If n=2, underlining with a width of 2 dots is applied. **
・ If n=1, underlining with a width of 1 dots is applied.
・ If n=0, underlining is cancelled.
・ Available at any point in the text line.
ESC ! Global formatting
[ASCII] ESC ! n
[Decimal] 27 33 n
[Hexadecimal] 1B 21 n
[Parameters] 0≤n≤255
[Description]
・ Specifies a combination of the various print modes.
Bit76543210
If "1" Underline Italics Double width Double height Bold Reduced Proportional 12 cpi
If "0" Cancel Cancel Cancel Cancel Cancel Cancel Cancel 10 cpi
Setting Bit 5 comes before setting Bit 2.
The setting of “Bit 0” is available only when “Bit 1” is set with a parameter “0”.
26










