From owner-freebsd-questions Tue Apr 2 09:56:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA11926 for questions-outgoing; Tue, 2 Apr 1996 09:56:09 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id JAA11920 Tue, 2 Apr 1996 09:56:07 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id KAA16574; Tue, 2 Apr 1996 10:52:16 -0700 From: Terry Lambert Message-Id: <199604021752.KAA16574@phaeton.artisoft.com> Subject: Re: Laser Printers To: lehey.pad@sni.de (Greg Lehey) Date: Tue, 2 Apr 1996 10:52:16 -0700 (MST) Cc: gpalmer@freebsd.org, steve@aries.bbcc.org, freebsd-questions@freebsd.org In-Reply-To: <199604020930.LAA14474@nixpbe.pdb.sni.de> from "Greg Lehey" at Apr 2, 96 08:29:24 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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.