For the following commands that use only 0 or 1 for the variable,
either the ASCII
codes
1 and 0 or the characters 1 and 0 can be used:
ESC
S
,
ESC U, ESC
X
,
ESC
p,
ESC W, ESC S, ESC
- , and
ESC %
For example, in BASIC you can turn on double-wide with either of
these statements:
LPRINT CHR$(27);"W";CHR$(l)
LPRINT CHR$(27);"W";"l"
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:
S I
D e c i m a l :
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 proportional mode the code format is the
following:
ASCII code:
ESC
n
Decimal:
27
112
n
Hexadecimal:
1B 70
n
In this case
n
can be either 1 or 0, to begin or end proportional
printing. You can use either of the following commands to turn ON
proportional print from BASIC:
LPRINT CHR$(27);CHR$(112);CHR$(l)
LPRINT CHR$(27);"p";CHR$(l)
A - 2
Command Summary