67
Table 4-3
Underline and overline commands
It’s that simple. Let’s try it with this program:
10 Demo of underlining and overlinins
20 LPRINT "Demo of I';
30 LPRINT CHR$(27);"-1";
40 LPRINT "UNDERLINED";
50 LPRINT CHR$(27);"-0";
60 LPRINT " and 'I;
70 LPRINT CHR$(27);"-1";
80 LPRTNT "OVERLINED";
90 LPRINT CHR$(27);"-0";
100 LPRINT ti printing."
It should come out like this:
q 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 only 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