APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

SCO Unix/System V Printing FAQ

This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

What are the escape sequences to select the trays on my HP Laser printer?

Back before the dinosaurs died, printers came with manuals that had all this stuff in them. Nowadays, you are lucky if it's on the CD, and if it is, good luck finding it. Here's a few that may help for HPLaserjets:

Hexadecimal Code Decimal Code Octal Code Action
1B 11 27 17 033 021 Standard Tray
1B 15 27 21 033 025 (4050) Standard Tray
1B 14 27 20 033 024 MP Paper Tray
1B 15 27 21 033 025 500 Sheet Tray
1B 18 27 24 033 030 (4050) 500 Sheet Tray
1B 16 27 22 033 026 Optional Envelope Feeder


The octal codes are what you'd probably use in an interface script:



echo "\033\030\c"


Thanks to Jean-Pierre Radley and Richard Seeder

For a complete list of Laserjet codes see HP LaserJet Series Printers - PCL Commands, Basic Page Formatting, and Font Selection.

The ones to use for printing text:

echo "\033E\c" # Reset Printer
echo "\033&k2G\c" # Set line termination mode (LF=LF/CR).

Flush All complete pages \E&r0F 
Flush all page data \E&r1F
 

I don't find these two mentioned at that HP document.

They are referenced in this PCL 5 Technical reference PDF, which explains that these can be used to free printer memory but that they will reduce performance.

See PCL6 also.

Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> What are the escape sequences to select the trays on my HP Laser printer?






Wed Jun 25 13:10:25 2008: 4371   borek


current version of link
(link)



Wed Jun 25 14:45:53 2008: 4372   BigDumbDInosaur


Also, see (link) for an extensive discussion of PCL5.

You may be interested to know that you can order a CD from H-P with a complete set of articles on PCL, encompassing both the theory and the escape codes.

------------------------


Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





Why bother with subroutines when you can type fast? (Vaughn Rokosz)




FAQ

Printing



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode


SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)
www.SCOsales.com