From owner-freebsd-questions Sun Jan 21 14:17:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 0DBA137B404 for ; Sun, 21 Jan 2001 14:17:25 -0800 (PST) Received: (from jonc@localhost) by itouch.co.nz (8.11.1/8.11.1) id f0LMH0P75042; Mon, 22 Jan 2001 11:17:00 +1300 (NZDT) (envelope-from jonc) Date: Mon, 22 Jan 2001 11:17:00 +1300 From: Jonathan Chen To: Drew Sanford Cc: questions Subject: Re: Help with printer setup Message-ID: <20010122111700.B67389@itouchnz.itouch> References: <3A69C914.4070703@planetwe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A69C914.4070703@planetwe.com>; from drew@planetwe.com on Sat, Jan 20, 2001 at 11:21:24AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Jan 20, 2001 at 11:21:24AM -0600, Drew Sanford wrote: > I'm trying to set up a printer on 4.2-stable and running into some > problems. I looked at the handbook, and figured that sensably enough, > the first thing to do was to try lptest > lpt0 to see if everything was > talking nicely. After a second or 5, it printed one line of the ascii > charactor set across the top of the page (from ! to o) and then a " at > the righthand end of the next line, then ejected that sheet of paper, > loaded another, and sat there. The trouble shooting section of the > handbook doesn't appear to deal with this situation. This sounds like the common staircasing effect. You need a linefeed converter filter for this queue. Create a script like this: #!/bin/sh # # Add a \r to each line # awk '{ print $0,"\r"; }' and add an entry to this script file in /etc/printcap, eg: if=/path/to/the/script/file -- Jonathan Chen ---------------------------------------------------------------------- "If you wish your merit to be known, acknowledge that of other people" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message