Printer Initialization
ESC @
Data Structure
ASCII ESC "@" printer initialization
hex. 1B 40
dec. 27 64
Description
Printer initialization means that the printer is in the same state as it is after switch-on. All
parameters set by means of ESC sequences are cleared.
All print data transferred after the last print control code (CR, LF ...) are lost. For this
reason first send the respective print control code (CR, LF) and then the ESC @
sequence.
Example
10 REM initialization
15 LPRINT CHR$(27);"l";CHR$(10):REM set left margin
20 LPRINT CHR$(27);CHR$(15):REM set condensed
30 LPRINT CHR$(27);"G":REM set NLQ
35 LPRINT CHR$(27);"S1";:REM set subscript
40 GOSUB 90
70 LPRINT CHR$(27);"@";
80 GOSUB 90
90 END
100 LPRINT "Matrix Printer"
110 LPRINT:LPRINT
120 END
114
Miscellaneous