Star Micronics ND-10/15 user manual Now the results look like this

Models: ND-10/15

1 128
Download 128 pages 43.01 Kb
Page 56
Image 56

50

10' Demo of expanded print

20 LPRINT "Demonstrationof 'I;

30 LPRINT CHR$(14);

40 LPRINT "EXPANDED";

50 LPRINT CHR$(20);

60 LPRINT M printing."

70 LPRINT "Notice that 'I;

80 LPRINT CHR$(P4);

90 LPRINT "EXPANDED mode"

100 LPRINT "automatically turns off at the end of a line."

Expanded print set with CHR$( 14) is automatically cancelled at the end of the line. This is convenient in many applications, such as for one line titles. Note that you didn’t need to put an < ESC > in front of the CHR$(l4), although < ESC > CHR$(14) works just the same.

You can also cancel one line expanded print before a carriage return with CHR$(20), as done in line 50.

Sometimes you may wish to stay in expanded print for more than one line. Change your program to this:

10Demo of permanent expanded.mode

20LPRINT CHR$(27);"Wl";

30LPRINT "Permanent expanded"

40LPRINT "mode stays on until"

50LPRINT "it is ";

60LPRINT CHR$(271;"WO";

70 LPRINT "turned off."

Now the results look like this:

Page 56
Image 56
Star Micronics ND-10/15 user manual Now the results look like this