Star Micronics NB24-10/15 Printer User Manual


 
53
In this program underline is turned on in line 30 with (ESC)
-
1, and then off in line 50 with (ESC) -” 0. The overline is
turned on in line 70 with (ESC) “-” 1, and then off in line 90
with (ESC) “-” 0. There’s a new aspect to this program,
though. The semicolons at the end of the lines told BASIC that
those lines were to be continued. Therefore, BASIC didn’t send
a carriage return and line feed at the end of those lines. We just
did this to illustrate that all these control codes can be used in
the middle of a line. It’s easy to underline, overline or italicize on-
ly part of a line.
n Superscripts and subscripts
Your printer can print in two different heights of characters.
The smaller characters are called superscripts and subscripts and
are half the height of normal characters. Superscripts print even-
ly with the tops of regular printing while subscripts print evenly
with the bottom of regular printing. They are frequently used to
reference footnotes, and in mathematical formulas.
Table 4-5 has the codes for using superscripts and subscripts.
Table 4-5
Superscripts and subscripts commands
Try this program to see them work:
10 '
Demo of superscripts and subscripts
20 LPRINT "Look! ";
30 LPRINT CHR$(27);"SO";
40 LPRINT "SUPERSCRIPTS ";
50 LPRINT CHR$(27);"T";
60 LPRINT "& ";
70 LPRINT CHR$(27);"Sl";
80 LPRINT "SUBSCRIPTS ";
90 LPRINT CHR$(27);"T";
100 LPRINT "on one line."
Look! suPERscRIPTs & suasca~p~s on one line.