In order to execute ESC @ (Initialize the printer) send “@" following the
ESC code.
Always write ” ; ” at the end of the commands or BASIC will send a CR
and LF code.
Sending Print Data
120 PRINT #1, “ABCDEF” ;CHR$(1O);
Always send a LF code (CHR$ (10)) after print data.
To execute printing, send a LF code or ensure the line is filled.
Selecting Character Font B
130 PRINT #1, CHR$(27); ”!” ;CHR$(1);140 PRINT #1, “ABCDEF” ;CHR$(10);
The number code that follows “!” alters the font, and also the mode for
character size.
Therefore, the example above sets character Font B in lines 130 and
140; the style of “ABCDEF” is changed to the style of Font B.
Font
code size
code
size
code
size
code
size
A
CHR$(0) Normal CHR$ (16)
Double-
CHR$ (32)
Double-
height
CHR$ (48)
width
Quadruple
B
CHR$(1) Normal CHR$ (17)
Double-
CHR$ (33)
Double-
height
CHR$ (49)
Quadruple
width
Font B and the size are selected until CHR$ (27); “!” ; CHR$ (x) ; is
executed again or initialized.
-53-