57
In this program we set tabs at 10 and 20 in channel 1 in line
20.In line 30 we set tabs 15 and 25 in channel 2, and in line 40 we set tabs 17 and 28 in channel 3.
Because the channels are stored, you must make the printer to recall one before you use it, so we used (ESC) “/” CHR$(nU) in line 80.
CENTERING AND ALIGNING TEXT
Text can be arranged in any of three formats: left aligned or
Table
Alignment | commands | |
Function | Control code | |
(ESC) “a” CHR$(O) | ||
Centered printing | (ESC) | “a” CHR$(l) |
(ESC) | “a” CHR$(2) |
Try this program to see how easy it is.
10 ’ Demo of aligning and centering
20LPRINT CHR$(27);"1";CHR$(20);
30LPRINT CHR$(27);"Q";CHR$(60);
40LPRINT CHR$(~~);"~";CHR$(O);
50LPRINT "THIS LINE IS
60LPRINT CHR$(27);"a";CHR$(l);
70LPRINT "THIS LINE IS CENTERED."
80LPRINT CHR$(27);"a";CHR$(2);
90LPRINT "THIS LINE IS
110 END