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 - , andESC %

For example, in BASIC you can turn on double-wide with either of these statements:

LPRINT CHR$(27);"W";CHR$(1)

LPRINT CHR$(27);"W";"1"

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: SIDecimal: 15Hexadecimal: 0 FThis 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

p

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$(1)

LPRINT CHR$(27);“p”;CHR$(1)

A-2

Command Summary