50
10 ’ Demo of expanded print
20 LPRINT “Demonstration of ‘I;
30 LPRINT CHR$(14);
40LPRI NT “EXPANDED”;
50LPRINT CHR$(20);
60LPRINT ” printing.”
70LPRINT “Notice that ‘I;
80LPRINT CHR$(14);
90LPRINT “EXPANDEDmode”
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$(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 CHRrE(27) ; “Wl”;
30 LPRINT “Permanent expanded”
40 LPRINT “mode stays on until”
50 LPRINT “it is ‘I;
60LPRINT CHR$(27) ;“WO”;
70 LPRINT “turned off. ”
Now the results look like this: