From owner-freebsd-questions Wed Jan 11 22:17:27 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id WAA20369 for questions-outgoing; Wed, 11 Jan 1995 22:17:27 -0800 Received: from rflab1.gtri.gatech.edu (rflab1.gtri.gatech.edu [130.207.199.83]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id WAA20363 for ; Wed, 11 Jan 1995 22:17:26 -0800 Received: from localhost (ken@localhost) by rflab1.gtri.gatech.edu (8.6.5/8.6.5) id BAA03876; Thu, 12 Jan 1995 01:16:56 -0500 From: "Kenneth D. Merry" Message-Id: <199501120616.BAA03876@rflab1.gtri.gatech.edu> Subject: Re: your mail To: gary@palmer.demon.co.uk (Gary Palmer) Date: Thu, 12 Jan 1995 01:16:55 -0500 (EST) Cc: FreeBSD-Questions@FreeBSD.org In-Reply-To: <199501112113.VAA00175@palmer.demon.co.uk> from "Gary Palmer" at Jan 11, 95 09:13:17 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1167 Sender: questions-owner@FreeBSD.org Precedence: bulk Gary: > I'm trying to set up my HP DeskJet 500 printer off a FreeBSD box. It > connected to the parallel port, and I'm using the following > /etc/printcap entry : > > lp|djet500:\ > :lp=/dev/lpt0:sd=/var/spool/lpd:lf=/var/log/lpd-errs:sh:sf:fs#2020: > > Unfortunately, I can't get the printer to print text properly. The Deskjet > needs a CRLF combination to do a what UN*X does with just the LF. I tried > the above `fs' entry to try and cure the problem, but it still doesn't > work. What do I need to do to get this working? A friend of mine had a similar problem with a deskjet. I'm not sure where he got it, but I think this is the filter he used to fix the problem: #!/usr/local/bin/bash echo -ne \\033\&k2G cat echo -ne \\f Apparently it sends some sort of code to the DeskJet to tell it to print the right thing. The above script should go (I think) in an "of" statement, such as: lp|djet500:\ :lp=/dev/lpt0:sd=/var/spool/lpd:lf=/var/log/lpd-errs:\ :of=/usr/local/bin/pfilter: Anyway, give it a whirl. It should get you started, at least. Ken -- Kenneth Merry ken@rflab1.gtri.gatech.edu Disclaimer: I don't speak for GTRI, GT, or Elvis.