Software Upgrades: Please check our latest Download section.
Search Tip: You can increase the accuracy of your searches by using as many keywords as possible. Remove any common words such as "a", "or", "the" as they will be used in the search. Do not use any operands such as +, or quotation marks to enclose phrases.
LPRng printcap information on setting TTY parameters when printing to a local serial port.
How to set the TTY settings by manually editing the printcap entry for a serial printer. Information taken from the LPRng Reference Manual.
br=serial port bit rate
rw FLAG device opened RW
stty=stty options for serial port configuration
The following is a typical printcap for a serial printer:
# Local Serial ASCII printer lp2 :lp=/dev/ttya :rw :cm=Serial printer :sd=/var/spool/lpd/lp2 :stty=9600 -echo -crmod -raw -oddp -evenp pass8 cbreak ixon :filter=/usr/local/sbin/lpf :mx=0
Let's examine the new options:
A serial port is usually bidirectional, and printers will report errors back to the host computer. The rw flag will cause the printer port to be opened read-write, and the lpd server will report status information.
The stty option specifies the stty(1) flags and line speed needed to configure the serial line (See Serial Printers for details).
The legacy br (bit rate) option can be used to specify the line speed as well.