Star Micronics NX-15 ~ Expanded print, LPRINTCHR$14 40 LPRINT “EXPANDED” 50 LFRINTCHR$20

Models: NX-15

1 210
Download 210 pages 57.72 Kb
Page 55
Image 55
~ Expanded print

1-

47

the line at 12 characters per inch. The (ESC) “P” in line 40 resets the printer to pica pitch and line 50 prints the line in pica pitch.

~ Expanded print

Each of the print pitches can be enlarged to twice its normal width. This is called expanded print. Try this program to see how it works:

10 ‘ Demo of expanded print.

20 LPRINT “DemorIstrat ion of “;

30 LPRINTCHR$(14) ;

40LPRINT “EXPANDED”;

50LFRINTCHR$(20) ;

60LPRINT “ print ing. ”

70LPRINT “Notice that “;

80LPRINTCHR$(14) ;

90LPRINT “EXPANDEDmode”

100 LPRINT “automatically turns off at the end of a 1ine. ”

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$(14), although (ESC) CHR$(14) works just the same.

You can also cancel one line expanded print beforea 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:

10 ‘ Demo of permanent expanded mode

20 LPRINTCHR$(27); “WI”;

30 LPRINT “Permanent expanded”

40 LPRINT “mode stays on unti 1“

50 LPRINT “is is “;

60LPRINTCHR$(27); “WO”;

70LPRINT “turned of f.”

Page 55
Image 55
Star Micronics NX-15 ~ Expanded print, 10 ‘ Demo of expanded print 20 LPRINT “DemorIstrat ion of “, LPRINT “EXPANDEDmode”