
52
characters before line 70 switches printer back to internal LQ characters with an (ESC) “k” CHR$(O) command.
You can control the font styles with the extra functions with the control panel.
Table
Font selection commands
Function | Control code |
Selects font slot 1 | (ESC) “k” CHR$(l) |
Selects font slot 2 (15~inchtype only) (ESC) “k” CHR$(B)
Selects internal characters | (ESC) “k” CHR$(O) |
nUnderlining and overlining
Not only can your printer print all styles of printing in both roman and italic, but it can underline and overline them too. The control codes are shown in Table
|
| Table |
|
|
| Underline | and overline | commands | |
Function |
| Control code | ||
Underline | ON | (ESC) | ||
Underline | OFF | (ESC) | ||
Overline | ON | (ESC) | “A” | 1 |
Overline | OFF | (ESC) | 0 |
It’s that simple. Let’s try it with this program:
10 ’ Demo of underlining and over lining
20 LPRINT "Demo of ";
30 LPRINT
40 LPRINT "UNDERLINED";
50 LPRINT
60 LPRINT w and ";
70 LPRINT CHR$(27);" 1";
80 LPRINT "OVERLINED";
90 LPRINT
100 LPRINT w printing."
It should come out like this:
Demo of UNDERLINED and m | printing. |