55
10 ’ Demo of boldface and emphasized
20 LPRINT CHR$(27);"G";
30 LPRINT "This line is BOLDFACEprinting."
40 LPRINT CHR$(27) ;"E";
50 LPRINT "This line is BOLDFACEand WHASIZED."
60 LPRINT CHR$(27);"H";
70 LPRINT "This line is EMPHASIZEDprinting."
80 LPRINT CHR$(27);"F";
90 LPRINT "This line is normal printing."
100 END
Run this program. The results will look like this:
This line i5 BOLDFACE printing.
This line is BOLDFACE and EMPHASIZED. This line is EMPHASIZED printing.
Line 20 turns on boldface with < ESC > “G” and line 30 prints a line of text. In line 40 emphasized is turned on with
Look closely at the different lines of printing. In the line of boldface printing each character has been printed twice, ‘and the paper was moved up slightly the second time they were printed. In emphasized printing, the characters are moved slightly to the right the second time the printer prints. The second line combined both of these so that each character was printed 4 times.
MIXING PRINT MODES
We have learned how to use the various print modes indi- vidually and together. Now we’ll see how to combine them more efficiently.