IBM Personal Computer AT Manual To Operations page 91

Table of Contents

Advertisement

Printer Control Codes Descriptions
The following pages list, in alphabetic order, the printer
control codes with a detailed description of the printer
control codes. Some knowledge of BASIC
programming or how to insert printer control codes in
your program is necessary to properly use these codes.
An example of each code in BASIC is at the end of
each description. The "Format" information is given
where more information is needed for programming
considerations.
CODE
FUNCTION
BEL
BeD
Sounds the printer buzzer for I second.
LPRINT CHR$(7);
CAN
Cancel
Clears the printer buffer. Control codes
except SO, remain in effect.
LPRINT CHR$(24);
CR
Carriage Return
Ends the line the printer is on and prints the
data remaining
in
the printer buffer. IBM
Personal Computer BASIC adds a line feed
to the carriage return code CHR$(13). To
avoid a line feed, use carriage return code
CHR$(141) in printer character set 1. (See
ESC
6
or ESC
7
to switch character sets.)
LPRINT CHR$(13); or
LPRINT CHR$(141);
for IBM Personal Computer BASIC.
DC 2
Device Control 2 (Compressed Character
Off)
Stops printing in the Compressed print
mode.
LPRINT CHR$(18);
Graphics Printer 1-31

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Personal Computer AT and is the answer not in the manual?

Table of Contents