From owner-freebsd-questions Mon Jan 4 15:43:05 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA23573 for freebsd-questions-outgoing; Mon, 4 Jan 1999 15:43:05 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kakapo.pinnacle.co.nz (pinsoft.internet.co.nz [202.37.141.181]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA23562 for ; Mon, 4 Jan 1999 15:43:02 -0800 (PST) (envelope-from jonc@pinnacle.co.nz) Received: from kiwi.pinnacle.co.nz (kiwi.pinnacle.co.nz [202.37.163.2]) by kakapo.pinnacle.co.nz (8.9.1/8.9.1) with SMTP id MAA11373; Tue, 5 Jan 1999 12:41:09 +1300 (NZDT) Date: Tue, 5 Jan 1999 12:41:09 +1300 (NZDT) From: Jonathan Chen To: Gerry Marcelo cc: freebsd-questions@FreeBSD.ORG Subject: Re: Printer Problems "staircase effect" In-Reply-To: <00e001be35de$349d52d0$c1772581@doppelganger> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 1 Jan 1999, Gerry Marcelo wrote: > #!/bin/sh > printf"\033&k2G" && cat && printf"\f" && exit 0 > exit 2 > > I checked my printer's manual and the ESC &k2G should do the trick, > but my printer continues to "staircase" no matter what I do. If you don't like using `sed' and having control characters in your script file, you can use: #!/bin/sh awk '{ printf {"%s\r\n", $0}; }' printf "\f" --------------------------------------------------------------------- Jonathan Chen | Opportunites are seldom labeled --------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message