This Manual: http://www.manuallib.com/file/2525964
'.
Software Introduction
Multi-byte control codes, often called Escape control codes or Escape
sequences, always begin with
an
ESC
designation. ESC is designated
by
CHR$(27) in decimal
form
or
CHR$(&H1
B)
in
hexadecimal form.
The ESC designation is always followed
by
one
or more additional
codes, hence the name multi-byte control
code.
In
BASIC, these two or more bytes
are
joined (or concatenated) into a
single command or string using either a plus
(+)
sign, a semicolon(;), or
by neither symbol but rather
by
listing
one
byte after another without
any spaces. BASIC
on
many computers allows you
to
use any of these
formats. Refer to your BASIC manual for the proper method of string
concatenation.
Table
4.1
and
4.2 show equivalent methods of entering multi-byte
control commands for most computers.
There is one remaining input format commonly used to reduce the
keystrokes necessary to enter a multi-byte control
~ommand.
As
you
examine the multi-byte control commands
in
the pages ahead, you will
notice that the second byte, with the exception of ESC+SO
and
ESC+SI, is always a character which appears somewhere
on
your
keyboard.
In
such cases rather than enter that character's ASCII code
as part of the CHR$ function, you may simply enter that character in
quotes ("). For example, to set pica pitch (ESC+P), you may enter:
LPRINT CHR$(27)+CHR$(80);
or
LPRINT CHR$(27)+"P";
As
another example, to set double width printing,
you
may enter:
LPRINT CHR$(27)+CHR$(87)+CHR$(1);
or
LPRINT CHR$(27)+"W"+CHR$(1);
With this method, any of the three input formats shown
in
Table
4.1
and
4.2 may also
be
used (subject to the BASIC you are using).
4-5