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';

30LPRINT CHR$(27);"-1";

40LPRINT "UNDERLINED";

50LPRINT CHR$(27);"-0";

60LPRINT " and 'I;

70LPRINT CHR$(27);"-1";

80LPRTNT "OVERLINED";

90LPRINT CHR$(27);"-0"; 100 LPRINT ti printing."

It should come out like this:

qIn 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.

nSuperscripts and subscripts

Your printer can print in two different heights of characters. The smaller characters are called superscripts and subscripts

Page 53
Image 53
Star Micronics NR-15, NR-10 user manual It’s that simple. Let’s try it with this program