Printing Text With Delta
33
twice, but they use slightly different methods to darken the char-
acters. Let’s try them and see what the difference is.
The following table shows the control codes for getting into
and out of double-strike and emphasized modes.
Table 3-3
Print emDhasis commands
L.
i
c
Function
Double-strike ON
Double-strike OFF
Emphasized ON
Emphasized OFF
a
Control code
‘, ESC) “G”
(ESC) “H”
(ESC) “E”
(ESC) “F”
Try them now with this little program:
~
j L.
I
) IN...
I
NEW
18 LPRINT CHR$(27) "G"
28 LPRINT "THIS IS DOUBLE-STRIKE PRINTING"
3p LPRINT CHR$(27) "H" CHR$(27) "E";
4@ LPRINT "THIS IS EMPHASIZED PRINTING"
5!2 LPRINT CHR$(27) "G";
69 LPRINT "AND THIS IS BOTH AT ONCE"
7pI LPRINT CHR$(27) "H" CHR$(27) "F"
Run this program. The results will look like this:
THIS IS DOUBLE-STRIKE PRINTING
THIS IS EMPHASIZED PRINTING
AND THIS IS BOTH AT ONCE
Line 10 turns on double-strike with (ESC) “G” and line 20
prints a line of text. In line 30 double-strike is turned off with
(ESC) “H” and then emphasized is turned on with (ESC) “E”.
Line 40 prints a line of emphasized text. Line 50 then turns dou-
ble-strike back on so that line 60 can print in both at once. Finally,
line 70 turns both off, so that Delta is set for normal printing.
Look closely at the different lines of printing. In the line of
double-strike printing each character has been printed twice, and
they are moved down just slightly the second time they are