From owner-freebsd-questions Sat Feb 1 21:53:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id VAA02604 for questions-outgoing; Sat, 1 Feb 1997 21:53:24 -0800 (PST) Received: from atlantis.nconnect.net (root@atlantis.nconnect.net [206.54.227.6]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA02590 for ; Sat, 1 Feb 1997 21:53:21 -0800 (PST) Received: from arabian.astrolab.org (dial238.nconnect.net [206.54.227.238]) by atlantis.nconnect.net (8.8.4/8.7.3) with SMTP id XAA16894; Sat, 1 Feb 1997 23:46:24 -0600 (CST) Message-ID: <32F42B84.167EB0E7@nconnect.net> Date: Sat, 01 Feb 1997 23:52:04 -0600 From: Randy DuCharme Organization: Computer Specialists X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 3.0-SMP i386) MIME-Version: 1.0 To: Stranger Bone CC: questions@freebsd.org Subject: Re: elimating the staircase problem on an HP DeskJet 400 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Stranger Bone wrote: < snip > > #!/bin/sh > # > # if-simple - Simple text input filter for lpd > # Installed in /usr/local/libexec/if-simple > # > # Simply copies stdin to stdout. Ignores all filter arguments. > > /usr/bin/tr "[\010]" "[\010\013]" && exit 0 > exit 2 > > And several variations on it, but all I got was either nothing at all > (the printer would feed the paper through but not print anything) or it > would print a single line and no more. I've had no experience with the 400 directly, but this one has worked on all printers that have stairstepped..... #!/bin/sh # # hpif - Simple text input filter for lpd for HP-PCL based printers # Installed in /usr/local/libexec/hpif # # Simply copies stdin to stdout. Ignores all filter arguments. # Tells printer to treat LF as CR+LF. Writes a form feed character # after printing job. printf "\033&k2G" && cat && printf "\f" && exit 0 exit 2 -- Randall D. DuCharme email: randyd@nconnect.net Systems Engineer Free your Machine Computer Specialists **** FreeBSD **** 414-259-9998 414-253-9919 (fax) Turning PCs into Workstations