OT: Linux/CUPS/stair-stepping
Joe Chasan
joe at magnatechonline.com
Thu Feb 21 09:33:22 PST 2008
On Thu, Feb 21, 2008 at 11:45:15AM -0500, Jay R. Ashworth wrote:
> I'm trying to print out a diff of some input tables, so I can take it
> with me to lunch (how's *that* for tying something to filepro? :-), and
> I've just configured the LJ1100 on my Windows server to be printable to
> from my laptop, running SuSE 10.2 and CUPS. I put it in unfiltered
> mode, since that's what one usually does when feeding filePro to CUPS
> and I'm having the problem I usually do:
>
> printing straight from the lp command staircases: there are no CRs with
> the LFs. filePro does those itself, if you tell it to, but when
> googling through several sets of search results, I find lots of
> people asking, and no one answering.
>
> Does anyone here know what the hot setup is for allowing text files to
> lp correctly to a PCL printer, and still letting filePro itself print
> properly?
I think the PCL code you want to insert somewhere, if that is possible,
is: <Esc>&k2G
from the PCL manual:
Line Termination Command
The Line Termination command controls the way the printer interprets
CR, LF, and FF control characters. All CR, LF and FF control
characters received after the Line Termination Command are
interpreted as shown below.
<Esc> & k # G
# = 0- CR=CR; LF=LF; FF=FF
1 - CR=CR-LF; LF=LF; FF=FF
2 - CR=CR; LF=CR-LF; FF=CR-FF
3 - CR=CR-LF; LF=CR-LF; FF=CR-FF
Default = 0
Range = 0-3
For example, if a value field of 1 is sent, the printer interprets each
Carriage Return (CR) received as a Carriage Return (CR) and Line
Feed (LF) control code. A Line Feed or Form Feed would be sent
as is.
If a value of 3 is sent, the printer interprets each Carriage Return (CR)
received as a Carriage Return (CR) and Line Feed (LF); it interprets
each Line Feed (LF) received as a Carriage Return (CR) and Line
Feed (LF); and it interprets each Form Feed (FF) received as a
Carriage Return (CR) and Form Feed (FF).
-joe
--
-Joe Chasan- Magnatech Business Systems, Inc.
joe - at - magnatechonline -dot- com Hicksville, NY - USA
http://www.MagnatechOnline.com Tel.(516) 931-4444/Fax.(516) 931-1264
More information about the Filepro-list
mailing list