Table 7-3 Underline Commands - Star Micronics Radix User Manual

Table of Contents

Advertisement

62
Radix User's Manual
and italic, but it can underline them too. The control codes are
shown in Table
7-3.
Table 7-3
Underline commands
Function
Underline
ON
Underline
OFF
Control code
(ESC) " - " CHR$(l)
(ESC) " - " CHR$(O)
Again, that's simple. Let's try it with this program:
18 'Demo underlining.
2pl LPRINT CHR$(27) "-" CHR$(l) ; 'Underline on.
38 LPRINT "This phrase is UNDERLINED;" ;
48 LPRINT CHR$(27) 'I-" CHR$(!J) j 'Underline off.
5p! LPRINT I' this is not."
It should come out like this:
This
phrase
is
UNDERLINED;
this
is
not.
In this program underline is turned on in line
20
with (ESC)
" - " CHR$(l), and then off in line
40
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
Radix can print in two different heights of characters. The
smaller characters are called superscripts and subscripts and are
half the height of normal characters. Superscripts print even with
the tops of regular printing while subscripts print even with the
bottom of regular printing. They are frequently used to reference
footnotes, and in mathematical formulas.
-
--
--
-
d
-
-
-
-

Advertisement

Table of Contents
loading

Table of Contents