Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Dec 1996 12:16:08 -0600
From:      Randy Berndt <rberndt@nething.com>
To:        "Allen Hyer" <allenh@wtrt.net>, <questions@freebsd.org>
Subject:   Re: remote printers
Message-ID:  <2.2.32.19961209181608.0071bb10@nething.com>

next in thread | raw e-mail | index | archive | help
At 11:35 AM 12/9/96 -0600, Allen Hyer wrote:

>  I am just trying to print plain text, nothing fancy.  The text gets to
>the printer, with one problem.  At the end of a line of text, the printer
>does a newline, but not a carriage return.  I have tried using an input
>filter, to no avail.  Can you use an input filter on a remote printer?  If
>not, any idea how I can get this to work?  I really don't want to change
>the configuration of the printer, as it also serves the Novell LAN and the
>AS/400.

The laserjet needs to be sent a command to turn on "LF=CR+LF". The command
is "Escape" followed by "&k2G". I do this by using a filter containing:

#!/bin/sh
printf "\033E\033&k2G"
cat -
printf "\033E"

If the filter doesn't work on the remote printer, you might try and get
whatever is generating the print job to prepend the command.

Randy Berndt <rberndt@nething.com>
----------------------------------
AOS/VS, FreeBSD, DOS:
I'm caught in a maze of twisty little command interpreters, all different.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2.2.32.19961209181608.0071bb10>