Printers on serial lines

When you connect a printer via a serial line, you must set the proper baud rate and terminal modes.

The following example is for a DecWriter III printer connected locally via a 1200-baud serial line:

lp|LA-180 DecWriter III:\
  :lp=/dev/lp:br#1200:fs#06320:\
  :tr=\f:of=/usr/lib/lpf:lf=/usr/adm/lpd-errs:
lp
The name of the file to open for output.
br
The baud rate for the tty line.
fs
Flags that set CRMOD, no parity, and XTABS.
tr=\f
Print a formfeed character when the queue empties. This is handy when the printer has continuous paper, because you can tear the paper off when the print job finishes instead of first having to take the printer offline and manually advance the paper.
of=/usr/lib/lpf
Use a filter program called lpf for printing the files (see "Filters," below).
lf=/usr/adm/lpd-errs
Write any error messages to the file /usr/adm/lpd-errs, instead of to the console.