Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 1997 15:00:40 -0700 (PDT)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        Patrick Gardella <pgardella@mail.geocities.com>
Cc:        Dan Busarow <dan@dpcsys.com>, freebsd-questions@freebsd.org
Subject:   Re: Juki Printer?
Message-ID:  <Pine.BSI.3.94.970521144911.15915A-100000@andrsn.stanford.edu>
In-Reply-To: <199705212109.OAA20866@geocities.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 21 May 1997, Patrick Gardella wrote:

> > On Tue, 20 May 1997, Patrick Gardella wrote:
> > > However, I get the infamous staircase effect.  Since I don't have the 
> > > manual, I don't have the escape character or the dip switch config to 
> > > change the LF to a LF/CR.
> > 
> > Look in the handbook section on printing.  There is a filter
> > described there that will add the \r for you.
> 
> There is a filter for HP printers (printf "\033&k2G") and one for 
> serial line printers, but not for parallel line or a Juki. 
> 
> The printf noted above does not work.
> 
> Any other thoughts?
> 
> Patrick

To print to an HP laserjet, I use the following awk script, qp.awk:

BEGIN {
	print("E&k3G(s1p10v0s0b5T&a06L") # times roman med
	#printf("E&k3G(s0p12v0s0b3T&a06L") # courier 12 point
	#printf("E&k3G(s1p14v0s3b4T&a06L") # helvetica 
	}
{print}

END {
	printf("E")
}

which gets called from a shell script named qp:

#!/bin/sh

awk -f ~/bin/qp.awk $1 | lpr

so I just type "qp filename" to print filename.  This requires no
filters.  But the printer codes are PCL codes, probably not what
the Juki uses.  To find out what it uses you might try the
newsgroup comp.perhipherals.printers (or something like that).

The printer codes in qp.awk reset the printer, tell it to treat
cr and lf as cr + lf, select a typeface, and set the left margin;
others could of course be included, e.g., the code for printing
in landscape instead of the default portrait, or the code for
lines per inch.  Try to get a manual for your printer!

Annelise

P.S. What looks like ^[ in the above is decimal 027, equivalent
to \033 (octal) in the printer section of the FreeBSD handbook.
In vi this is entered (in insert mode) with Ctrl-v<esc>, where
<esc> is the escape key. (The "printf"s in the above probably
could be only "print".)

 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.970521144911.15915A-100000>