![Canon K10158 User Manual Download Page 122](http://html.mh-extra.com/html/canon/k10158/k10158_user-manual_2553137122.webp)
ESCape sequence codes
Function
ASCII
Dec.
Hex.
Set double-wide mode by line
ESC SO
27 14
1B 0E
Set condensed mode
ESC SI
27 15
1B 0F
Control automatic sheet feeder
ESC EM n
27 25 n
1B 19 n
n = R: Eject paper
Function
ASCII
Dec.
Hex.
Set inter-character space
ESC SP n
27 32 n
1B 20 n
n = 0 to 127
Select various print modes *
1
ESC ! n
27 33 n
1B 21 n
Cancel MSB control
ESC #
27 35
1B 23
Set absolute print position
ESC $ n
1
n
2
27 36 n
1
n
2
1B 24 n
1
n
2
Select download character set
ESC % n
27 37 n
1B 25 n
Define download characters
ESC & NUL n
1
n
2
27 38 0 n
1
n
2
1B 26 00 n
1
n
2
r
1
r
2
r
3
data
r
1
r
2
r
3
data
r
1
r
2
r
3
data
Select score mode *
2
ESC ( - n
1
n
2
27 40 45 3 0
1B 28 2D 03 00
m d
1
d
2
1 d
1
d
2
01 d
1
d
2
Assign character table *
3
ESC ( t n
1
n
2
27 40 45 3 0
1B 28 2D 03 00
d
1
d
2
d
3
d
1
d
2
d
3
d
1
d
2
d
3
Print data as characters
ESC ( ^ n
1
n
2
data
27 40 n
1
n
2
data
1B 28 5E n
1
n
2
data
*
1
Use the bit pattern (bit 0 to bit 7) of n, where n can range from 0 to 255, to set
or cancel a combination of character pitch and highlighting.
Bit
0
1
2
3
4
5
6
7
1
12 cpi
PS
Condensed
Emphasized
Double
Double wide
Italic
Underscore
0
10 cpi
Cancel
Cancel
Cancel
Cancel
Cancel
Cancel Cancel
*
2
d
1
determines the score position:
d
1
= 1: underscore
d
1
= 2: strikethrough
d
1
= 3: overscore
d
2
determines the score type:
d
2
= 0: cancel the score set by d1
d
2
= 1: single continuous line
d
2
= 2: double continuous line
d
2
= 5: single broken line]
d
2
= 6: double broken line
121
Appendix C Printer Command Summaries
C
*
3
d
1
defines the character table
area
d
1
= 0, 48: Table 0
d
1
= 1, 49: Table 1
d
1
= 2, 50: Table 2
d
1
= 3, 51: Table 3
d
2
defines the character table
d
2
= 0:
Italics table
d
2
= 1:
Code Page 437
d
2
= 3:
Code Page 850
d
2
= 6:
Code Page 855
d
2
= 7:
Code Page 860
d
2
= 8:
Code Page 863
d
2
= 9:
Code Page 865
d
2
= 10:
Code Page 852
d
2
= 11:
Code Page 857
d
2
= 13:
Code Page 864
d
2
= 15:
Code Page 869
d
3
=0