Star Micronics ND-10/15 user manual Off

Models: ND-10/15

1 128
Download 128 pages 43.01 Kb
Page 53
Image 53

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

40LPRINT “UNDERLINED” ;

50LPRINT CHR$(27) ; “-0”;

60LPRINT ” and I’;

70LPRINT CHR$ (27) ; “-1”;

80LPRINT “OVERLINED” ;

90LPRINT 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.

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 ND-10/15 user manual Off