Sun-Managers,
My original problem was :
 
> I have the following problem with the set-up on our HP laserjet 4
> printer.  If a plain text job is sent to the printer after a
> post-script job the output looks like this:
> 
> keypad board
>             ------------
>                          1.  Evaluating LED's
>                                               2. .............etc (off page)
I recieved several excellent suggestions. The ones I tried didn't work
and others I didn't get around to trying. The best suggestions were:
1. convert all text to post-script (users wanted plain text too)
2. since all pcl jobs were ok, run UNIX jobs thru unix2dos (didn't try)
3. using '^[&k2G' in a filter (didn't work)
I found a filter from another source that works. The following is my
printcap and the filter I used. The printer is configured serially
using XON/XOFF.
> car-laser|Laser Jet 4:\
> 	:lp=/dev/ttyb:\
> 	:br#38400:\
> 	:pl#55:\
> 	:fc#0177777:\
> 	:sh:\
> 	:fs#03:\
> 	:xc#0177777:\
> 	:xs#040040:\
> 	:ms=-parity,onlcr:\
> 	:sd=/usr/spool/printers/car-laser:\
> 	:lf=/var/spool/printers/car-laser/errorlog:\
> 	:of=/usr/lib/hpfilter:
> #
/*
        This filter does mapping as followed:
        FF -> CR FF
        CR -> CR
        LF -> CR LF
*/
#include <stdio.h>
main()
{
        int ch,lastchar;
        int i;
        lastchar=0;	
        while((ch = getchar()) != EOF) {
                if(( ch == 12 || ch == 10) && (lastchar !=13)) putchar(13);
                putchar(ch);
                lastchar =ch;
        }
}  
Many thanks to all who replied:
Tim Wort <tim@Access.COM>
upkar@hub.eng.wayne.edu (Upkar Singh Kohli)
David Fan <david@mrt.magma.COM>
uusr809!pnw!steve@uu2.psi.com (Steve Lee)
mblisd!isdserv1!drubie@Aus.Sun.COM (David "dOOf" Rubie)
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:55 CDT