Star Micronics NB-15 user manual Permanentexpanded modestayson until

Models: NB-15

1 114
Download 114 pages 4.7 Kb
Page 54
Image 54
mode

-

46

 

 

 

 

Demonstration

of

EXPANDED

printing.

Notice

that

EXPANDED

mode

automatically

turns

off at

the end of a line.

Expanded printset 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 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:

10’ Demo of permanent expanded mode

20 LPRINT CHR$(27) ;“Wl”;

30 LPRINT “Permanent expanded”

40 LPRINT “mode stays on until”

50 LPRINT “it is “;

60 LPRINT CHR$(27) ; “WO”;

70LPRINT “turned off.”

Now the results look like this:

Permanentexpanded

modestayson until

it is turned off.

When you turn on expanded print with (ESC) “W”1 it stays on until you turn it off with (ESC) “W”0.

Table 5-7

Expanded print commands

Function

 

 

Control code

One line expanded

ON

CHR$(14) or (ESC)CHR$(14)

One line exDanded

OFF

CHR$(20)

 

Expanded

6N

 

(ES6)“W”

1

Expanded

OFF

 

(ESC)“W”O

Page 54
Image 54
Star Micronics NB-15 user manual Permanentexpanded modestayson until