Star Micronics ND-10/15 Printer User Manual


 
47
Table 4-3
Underline and overline commands
Function
Control code
Underline ON
<ESC> “-” 1
Underline OFF
<ESC> “-” 0
Overline ON
< ESC > “-” 1
Overline OFF
< ESC > “L” 0
It’s that simple. Let’s try it with this program:
10
Demo of underlining and overlinins
20 LPRINT “Demo of “;
30 LPRINT CHR$(27) ; “-1”;
40 LPRINT “UNDERLINED” ;
50 LPRINT CHR$(27) ; “-0”;
60 LPRINT and I’;
70 LPRINT CHR$ (27) ; “-1”;
80 LPRINT “OVERLINED” ;
90 LPRINT CHR$ (27) ; “-0”;
100 LPRINT printing.
It should come out like this:
. 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