More printer control codes

From: William Levak (wlevak_at_cyberspace.org)
Date: 2001-08-15 20:14:45

I have been experimenting with my 8023P printer and revised the list of
printer control codes to reflect the results.  I was not able to get
secondary address 16 to do anything although the "PET Personal Computer
Guide" says that this should turn emphasized (correspondence) print off.
I found this was acomplished with secondary address 14 instead.

Printer Control Codes
CHR$(1)             Expanded print (to end of line, 127 levels).
CHR$(17)   CRSR DN  Business character set (to end of line).
CHR$(18)   RVS      Reverse on (to end of line).
CHR$(19)   HOME     Disable paging.
CHR$(129)           All expanded print off.
CHR$(145)  CRSR UP  Graphic character set.
CHR$(146)  RVS OFF  Reverse off.
CHR$(147)  CLR      Enable paging and set top of page.

Printer Secondary Addresses
 0  Print exactly as received.
 1  Print using format.
 2  Set format.
 3  Set lines/page, CHR$(number).
 4  Enable diagnostic messages.
 5  Define character 254, 6 bytes.
 6  Set line spacing, CHR$(1/144").           (not all printers)
 7  Set business character set.               (not all printers)
 8  Set graphic character set.                (not all printers)
 9  Disable diagnostic messages.              (not all printers)
10  Reset printer.                            (not all printers)
11  Set unidirectional printing.                    (8023P only)
12  Set bidirectional printing.                     (8023P only)
13  Set 15 cpi.                                     (8023P only)
14  Set 10 cpi, emphasized off.                     (8023P only)
15  Set emphasized for 15 cpi.                      (8023P only)
16  ?Set emphasized off?                            (8023P only)
17  Define bit graphic.                             (8023P only)
18  Print defined bit graphic.                      (8023P only)

NOTE: You must print to the file with the secondary address in
      order for it to take effect.



       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.1.