Appendix A. Commands and Exceptions
Supported Control Codes and Escape Sequences
ACK | Acknowledge |
BEL | Bell |
BS | Back Space |
CR | Carriage Return |
CSI | Control String Introducer, ESC [ |
DC1 | Select printer (Data Control 1) |
DC3 | Deselect printer (Data Control 3) |
DEL | Delete |
ENQ | Enquiry |
ESC | Escape |
ESC \ or ST | String Terminator |
ESC c | Reset to Initial State (RIS) |
ESC D or IND | Index |
ESC E or NEL | Next line |
ESC H or HTS | Horizontal Tab Setting |
ESC J or VTS | Vertical Tab Setting |
ESC K or PLD | Partial Line Down |
ESC L or PLU | Partial Line Up |
ESC M or RI | Reverse Index |
ESC P data or DCS | Enter Dot Graphics Mode (Device Control String) |
ESC [ p1; pn } | Sets bar code parameters (GENBC) |
ESC [ p1;....pn m | Select Graphics Rendition (SGR), Character Pitch, Print Modes and |
| Color Ribbon color. |
ESC [ p1; p2 SP B | Graphic Size Modification (GSM) |
ESC [ p1; p2 s | Left/Right Margin Set (GENSLR) |
ESC[ p1; pn u | Sets horizontal tab stops at specified positions |
| Multiple Horizontal Tab Set (GENHTS) |
ESC [ p1; pn g | Tab Clear (TBC) |
ESC [ p1; pn v | Sets vertical tab stops at specified positions |
| (Multiple Vertical Tab Set - GENVTS) |
ESC [ p1; p2; p3 r | Form Definition (GENFD) |
ESC [ p1; p2 <SP> G | Sets the line/character spacing |
ESC [ p1;...pn h | Set Mode (SM) |
ESC [ p1; pn l | Reset mode (RM) |
ESC [ p1 ’ | Horizontal Position Absolute (HPA) |
ESC [ p1 a | Horizontal Position Relative (HPR) |
ESC [ p1 d | Vertical Position Absolute (VPA) |
ESC [ p1 j | Horizontal Position Backward (HPB) |
ESC [ p1 k | Vertical Position Backward (VPB) |
ESC [ p1 q | Select Graphics Mode/Density(GENGRM) |
ESC [ p1 t | Special Print Mode (Oversize/Expanded/Bar code Mode - GENSPM) |
ESC [ p1; p2 f | Horizontal and Vertical Position Absolute (HVP) |
ESC [ p1 e | Vertical Position Relative (VPR) |
ETX | End of transmission |
FF | Form Feed |
HT | Horizontal tab |
LF | Line Feed |
NUL | Ignored |
OSC | Operating System Command, ESC ] |
SI | Shift In |
SO | Shift Out |
SP | Space |
VT | Vertical tab |