Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 1996 10:52:16 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        lehey.pad@sni.de (Greg Lehey)
Cc:        gpalmer@freebsd.org, steve@aries.bbcc.org, freebsd-questions@freebsd.org
Subject:   Re: Laser Printers
Message-ID:  <199604021752.KAA16574@phaeton.artisoft.com>
In-Reply-To: <199604020930.LAA14474@nixpbe.pdb.sni.de> from "Greg Lehey" at Apr 2, 96 08:29:24 am

next in thread | previous in thread | raw e-mail | index | archive | help
> To be fair to HP, this applies to all printers I know.  The original
> definitions of CR and LF are:
> 
> Carriage return: return the carriage (print head) to the left margin.
> 
> Line feed: rotate the platen one line forward without moving the
> carriage.
> 
> UNIX abused LF to mean both functions, which saves space, but is still
> not correct.

Unless you are going via serial line and set "onlcr" in the options
for the cannonical processing of printer output for the text filter.

Or set the printcap attribute for the default filter.

Or use a filter shelll script that invokes 'tr' to translate
lf ot crlf.

> All HP LaserJets I know have configurable actions on CR and LF,
> although I've occasionally had difficulty setting them by menu.  What
> you want is for LF to perform both functions, and CR to be ignored.
> That way, you can print either from UNIX or from DOG without
> reconfiguration.  Sorry, I don't have a handbook handy, but I'm sure
> you'll find in the printer handbook.

The problem with this is that it damages your ability to send binary
data to the printer.  Better to use one filter for text and another
for PCL (or PS, if the printer supports it).


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604021752.KAA16574>