ESCape Sequence Codes (BJ)

Function

ASCII

Decimal

Hexadecimal

Select image graphics mode

(ESC) U

27 42

1B 2A

Set/cancel underscore mode; n=0 (End underscore), 1

(ESC) – n

27 45 n

1B 2D n

(Start underscore)

 

 

 

 

 

 

 

Set 1/8-inch line spacing (8 lpi)

(ESC) 0

27 48

1B 30

Set 7/72-inch line spacing (7/72 inch per line)

(ESC) 1

27 49

1B 31

Enable line spacing set by (ESC) A

(ESC) 2

27 50

1B 32

Set graphics line spacing in n/216-inch increments; n=0 to

(ESC) 3 n

27 51 n

1B 33 n

255

 

 

 

 

 

 

 

Set top of form

(ESC) 4

27 52

1B 34

Set/cancel automatic LF; n=0 (CR), 1 (CR+LF)

(ESC) 5 n

27 53 n

1B 35 n

Select Character Set 2

(ESC) 6

27 54

1B 36

Select Character Set 1

(ESC) 7

27 55

1B 37

Set 12-cpi prestige mode

(ESC) :

27 58

1B 3A

Download font image

(ESC) =

27 61

1B 3D

Set text line spacing to n/72 inch per line; n=0 to 127

(ESC) A n

27 65 n

1B 41 n

Set vertical tabs; n1...n64=line numbers for tab stops

(ESC) B n1...n64

27 66 n1...n64

1B 42 n1...n64

Set page length in lines; n=1 to 127

(ESC) C n

27 67 n

1B 43 n

Set page length in inches; n=1 to 17

(ESC) C (NUL) n

27 67 0 n

1B 43 00 n

 

 

 

 

Set horizontal tabs; n1...n28=columns for tab stops

(ESC) D n1...n28

27 68 n1...n28

1B 44 n1...n28

Set emphasized mode to start printing in twice the normal

(ESC) E

27 69

1B 45

dot density

 

 

 

 

 

 

 

Cancel emphasized mode set by (ESC) E

(ESC) F

27 70

1B 46

Set double-strike mode

(ESC) G

27 71

1B 47

Cancel double-strike mode set by (ESC) G

(ESC) H

27 72

1B 48

Select font style; n=font style

(ESC) I n

27 73 n

1B 49 n

Perform graphics line spacing; n=0 to 255

(ESC) J n

27 74 n

1B 4A n

Set normal-density image graphics

(ESC) K

27 75

1B 4B

Set double-density image graphics

(ESC) L

27 76

1B 4C

Set perforation skip; n=1 to 127 lines

(ESC) N n

27 78 n

1B 4E n

Cancel skip over perforation

(ESC) O

27 79

1B 4F

Set/cancel proportional spacing mode; n=0 (End

(ESC) P n

27 80 n

1B 50 n

proportional spacing), 1 (Start proportional spacing)

 

 

 

Deselect printer; n=Printer ID

(ESC) Q n

27 81 n

1B 51 n

Set all tabs to power-on setting

(ESC) R

27 82

1B 52

Set super/subscript mode; n=0 (Select superscript mode),

(ESC) S n

27 83 n

1B 53 n

1 (Select subscript mode)

 

 

 

 

 

 

 

40