IBM Personal Computer AT Manual To Operations page 199

Table of Contents

Advertisement

Printer Control Codes Examples
1
Start Basic.
If
you need help, refer to your IBM
Personal Computer Basic manual.
This first example shows how to send the control code
SO (ASCII decimal value 14) to the printer to print
data in double-width print.
2
Type: LPRINT CHR$(14);"Personal Computer"
3
Press Enter (+--l ).
Your printer will print:
P e r s o n a 1
C o m p u t e r
This second example shows the use of the control code
Escape (ESC) E (ASCII values 27 and 69) to print
data in emphasized print.
4
Type: LPRINT CHR$(27);CHR$(69);"IBM
Personal Computer"
5
Press Enter (+--l ).
Your printer will print:
Color Printer 1-89

Advertisement

Table of Contents
loading

Table of Contents