A SERVICE OF

logo

Using the Command Summary
Each command description has a format section and a comment
section, The format section gives the ASCII, decimal, and
hexadecimal values for the command. These three formats are
equivalent, and it should be easy to pick the one most suited to
your purpose. The comment section describes the effect of the command
and gives any additional information necessary for using it.
Note: Some application programs can use control key sequences.
See the Control key chart on page
9-4
for information on using
control keys.
The simplest type of command consists of a single character to be
sent to the printer. For instance, to print in condensed mode the
code format is:
ASCII code:
SI
Decimal
:
15
Hexadecimal: OF
This code can be sent from a program by sending the code 15
directly.
More complex commands consist of two or more character codes.
For example, to print in double-wide mode the code format is the
following:
ASCII code:
ESC
W
n
Decimal:
27
87
n
Hexadecimal:
1B
57
n
In this case
n
can be either 1 or
0,
to begin or end double-wide
printing. You can use either of the following commands to turn on
double-wide printing from BASIC:
LPRINT
CHR$(27):CIiR$(87):CHR$tl)
LPRINT
CHR$(27):"W":CHR$(l)
command
sumy
9-3