[Compression procedure for mode 17 and 18]
A simple RLE encoding like this in PCX files is used. If two most
significant bits of the byte are set, the 6 LSB contain a repeat counter
(1-63), and the next byte contains the data to be repeated. A single
data byte with 2 MSB set must be sent as two bytes.
10. ESC – n
Set/cancel underline mode
[Code] [1Bh] + [2Dh] + n
[Range] {0 <= n <= 2}
[Outline] Set/cancel underline mode.
• Types of underlines by n value are shown below:
0 Cancel underline.
1 1-dot width underline.
2 2-dot width underline
[See Also] ESC !
11. ESC .
Self-test
[Code] [1Bh] + [2Eh]
[Outline] Prints the character table, character samples with different
attributes and diagnostic information.
[See also] ESC ,
12. ESC 2
Set 1/6-inch line spacing
[Code] [1Bh] + [32h]
[Outline] The line spacing is specified in units of 1/6 inch.
13. ESC 3 n
Set n/256-inch line feed spacing
[Code] [1Bh] + [33h] + n
[Range] {0 <= n <= FFh}
[Outline] The line spacing is specified in units of 1/203 inch.
[Default] The initial value is n = 34 (1/6 inch) (22h), being 4.23 mm line
spacing.
14. ESC = n
Data Input Control
[Code] [1Bh] + [3D] + n
[Range] {0 <= n <= FFh}
[Outline] Only bit 0 is significant:
Value 0: Selected
Value 1: Not selected
When the printer is not selected, it ignores all the received data
until it is selected by this command.
[Caution] • Even when the printer has not been selected, it can enter BUSY
state through printer operation.
[Default] • The initial value of n is “1”.