Star Micronics NB24-10/15 Printer User Manual


 
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 4-3
Font selection commands
Function
Control code
Selects font slot 1
(ESC) “k” CHR$(l)
Selects font slot 2 (15~inch type only) (ESC) “k” CHR$(B)
Selects internal characters
(ESC) “k” CHR$(O)
n Underlining 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 4-4.
Table 4-4
Underline and overline commands
Function Control code
Underline ON (ESC) “-” 1
Underline OFF (ESC) “-” 0
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
20 LPRINT "Demo of ";
30 LPRINT CHR$(27);"-1";
40 LPRINT "UNDERLINED";
50 LPRINT CHR$(27);"-0";
60 LPRINT w and ";
70 LPRINT CHR$(27);" 1";
80 LPRINT "OVERLINED";
90 LPRINT CHR$(27);"-0";
100 LPRINT w printing."
lining
It should come out like this:
Demo of UNDERLINED and m printing.