Commands by Function
This section describes all the LQ control codes. They are divided in
the following way:
Print Quality
Character Width
Print Enhancement
Page Formatting
Word Processing
Graphics
User-Defined Characters
MSB Control
Other Codes
Each command has a format section and a comment section. The
format section gives the ASCII, decimal, and hexadecimal codes for
the command. In some cases there is also a control key code because
some commercial software programs can use a control key for a code
between
0
and
27
(decimal). In this section, CTRL O for example,
means hold down the control key while you press O.
Letters in parentheses, such as (n) or (d), are variables, which are
explained in the comments sections.
In BASIC you can use either decimal or hexadecimal numbers, and
if there is a single letter in the second ASCII code column, you can use
that letter in quotation marks instead of the number below it. For
example, the format section for the right margin command is as fol-
lows:
ASCII code:
ESC Q
(n)
Decimal:
27
81 (n)
Hexadecimal: 1B
51 (n)
In BASIC you can send the command to set the right margin to
60
in
three ways:
Decimal:
LPRINT CHR$(27) CHR$(81) CHR$(60)
Hex:
LPRINT CHR$(&H1B) CHR$(&H51) CHR$(&H3C)
Decimal with quotes:
LPRINT CHR$(27) "Q" CHR$(60)
ESCape sequences that require a 0 or 1 with a letter, such as ESC
‘Wl”
to turn on double-width, can use either the ASCII code or the
numeral in quotation marks for the 0 or
1.
For example, in BASIC you
can turn on double-width with either of the formats below:
LPRINT CHR$(27)"Wl"
or
LPRINT CHR$(27)"W"CHR$(l)
I-4