From owner-freebsd-hackers Wed May 22 23:57:43 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA27531 for hackers-outgoing; Wed, 22 May 1996 23:57:43 -0700 (PDT) Received: from nightmare.dreamchaser.org ([207.40.47.18]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA27525 for ; Wed, 22 May 1996 23:57:41 -0700 (PDT) Received: from mofo (mofo.dreamchaser.org [206.230.42.91]) by nightmare.dreamchaser.org (8.6.12/8.6.12) with SMTP id AAA00658; Thu, 23 May 1996 00:57:32 -0600 Message-ID: <31A40C51.4BBF@ics.com> Date: Thu, 23 May 1996 00:57:21 -0600 From: Gary Aitken Organization: Integrated Computer Solutions X-Mailer: Mozilla 3.0b3 (X11; I; SunOS 5.4 sun4c) MIME-Version: 1.0 To: Warner Losh CC: Sean Eric Fagan , freebsd-hackers@FreeBSD.org Subject: Re: stty -- not References: <199605230631.AAA07373@rover.village.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > I'm not sure what the right and proper way to do this is, but I have a > printcap entry: ... > where addcr does the following: > > #!/bin/sh > sed -e 's/$/^M/' > echo ^L > > (the two character sequences above ^M, etc are really the actual > control characters). > > I then print lpr -Plc xxx to print something that isn't raw bits for > my printer. The ps entry is so I can print postscript files directly > on my non-postscript printer with the aid of gs. I lost my psfilt > program in the last great disk crash, but it was a simple hack of > gsbj. Since I use aladdin gs, I get free pdf printing too :-). > > A kludge I know, but it even worked when I had the LA-50 hooked up to > the machine, and that was a serial printer. I just let lpd open the > LA-50 in raw mode and dealt with the problem elsewhere. > > Pointers to the right way to do this would be accepted joyfully. I thought of doing that as well, but since the dang thing is *supposed* to work by tweaking the opost | onlcr bits, that seemed like the right way to do it. I figured since those bits have been in there working for years they couldn't possibly be broken (I may still be doing something wrong... At this point I can kludge it to work using stty or a filter; I guess it's time for some debugging. -- Gary Aitken garya@ics.com (business) garya@dreamchaser.org (personal)