Printing Text With Delta
35
This program is easy; line 10 turns italic on with (ESC) “4”,
and line 30 turns it off with (ESC) “5”.
UnderJining
Not only can Delta print all the styles of printing that we have
seen in both roman and italic, but it can underline them too. The
control codes are shown in Table 3-5.
Function
Underline ON
Underline OFF
Table 3-S
Underline commands
Control code
(ESC) “-" CHR$(l)
(ESC) “-"CHR$(O)
Again, that’s simple. Let’s try it with this program:
NEW
18 LPRINT CHR$(27) '-' CHR$(l);
2g LPRINT "THIS IS UNDERLINED";
3@ LPRINT CHR$(27) 11-u CHR$(a);
49 LPRINT v AND THIS IS NOT"
It should come out like this:
TtiIS IS UNDERLINED AND THIS IS NOT
__-_-_.-- -.-..._.-- ------“--_--
In this program underline is turned on in line 10 with (ESC)
“
- ” CHR$(l), and then off in line 30 with (ESC) “ -” CHR$(O).
There’s a new little wrinkle in this program, though. It all printed
on one line. The semicolons at the end of the first three lines told
BASIC that those lines were to be continued. Therefore, BASIC
didn’t send a carriage return and line feed at the end of those lines.
We just did this to illustrate that all these control codes can be used
in the middle of a line. It’s easy to underline or italicize only part of
a line.
Superscripts and subscripts
We have seen how Delta can print in 6 different widths. Delta