55
10 Demo of boldface and emphasized
20 LPRINT CHR$(27);"G";
30 LPRINT "This line is BOLDFACE printing."
40 LPRINT CHR$(27) ;"E";
50 LPRINT "This line is BOLDFACE and WHASIZED."
60 LPRINT CHR$(27);"H";
70 LPRINT "This line is EMPHASIZED printing."
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.
-rp! j. ‘E. 1. I. i’-, <? 1 5:; 3 <TV-i%3 I p r i ii I: i ri 1;; y
Line 20 turns on boldface with < ESC > “G” and line 30
prints a line of text. In line 40 emphasized is turned on with
--c ESC > “E”. Line 50 prints a line of text in boldface and
emphasized. Line 60 then turns boldface off with < ESC > “H”
so that line 70 can print in emphasized only. Finally, line 80
turns emphasized off, so your printer is set for normal printing.
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.
j
1 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.