From: Brandon S. Allbery (kf8nh@kf8nh.wariat.org)
Date: 01/30/93


From: kf8nh@kf8nh.wariat.org (Brandon S. Allbery)
Subject: Re: Printing nl/cr issue
Date: Sat, 30 Jan 1993 12:49:13 EST

erikm@borland.com (Erik McBeth) writes:
> : What if your printer doesn't insert cr on each line?
>
> I had the same problem with my HP III - the choice was to either send escape
> sequences telling the printer to turn LF->CRLF or write a simple filter.

System V parallel printer drivers support a subset of termio. This allows
you to use the same fs# and fc# (in classic printcap parlance, although the
printcap-reading routines would have to be written to support termios-style
flags instead if they haven't been already) for both serial and parallel
printers. IMHO this is a very good idea, for consistency reasons if nothing
else.

Note that all you really need to support is c_oflag; while there are
bidirectional parallel ports, I don't think Linux supports them as such and
in any case most of c_iflag, c_lflag, and c_cc[] would be useless on them
anyway. c_cflag and c_[io]speed is irrelevant on parallel hardware, and
I don't see much use for c_line either.

This also has the advantage that if a program *really* wants raw output all
it has to do on either serial or parallel ports is twiddle (c_oflag&OPOST).

++Brandon