From owner-freebsd-questions Mon Jan 22 0:54:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 844F337B401 for ; Mon, 22 Jan 2001 00:54:29 -0800 (PST) Received: (qmail 1657 invoked by uid 100); 22 Jan 2001 08:54:29 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14955.62789.137843.947947@guru.mired.org> Date: Mon, 22 Jan 2001 02:54:29 -0600 (CST) To: Jonathan Chen Cc: questions@freebsd.org Subject: Re: Help with printer setup In-Reply-To: <21453008@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jonathan Chen types: > 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 You can also install the magicfilter port, which has a "text" filter which takes care of this, among other things. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message