🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #8864

need *simple* way to print ascii files on laserwriter

#8864
From: Dale R. Wyttenbach
Date: Fri, 02 Feb 1990 22:09
27 lines
1463 bytes
Suppose you want to print the file /etc/hosts on a laserwriter that
is hooked up to your unix box on /dev/ttyh1.

What postscript commands do you put in FILE1 to make the command:

	cat FILE1 /etc/hosts > /dev/ttyh1

spit out /etc/hosts on the printer at 66 lines per page?  I want the
result to look as if you are looking at the file with vi: newlines
in the appropriate places, and tabs expanded to 8 spaces.  I don't
care what you do with other unprintable ascii characters; maybe print
their octal representation.

I'm assuming this can be done with < 10 lines of postscript code,
using a default resident font on the laserwriter.  (I already have
fancy programs like enscript that will do the job better)

Please respond via email.

Thanks

dale


 Dale Wyttenbach		     |		...rutgers!umn-cs!wytten
 wytten@cs.umn.edu		     |		   wytten@umnacvx.bitnet
Computer Science Department Systems Staff--University of Minnesota, Minneapolis
Technical Details
Message-ID: <1990Feb2.220910.16236@umn-cs.cs.umn.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!brutus.cs.uiuc.edu!psuvax1!rutgers!umn-d-ub!cs.umn.edu!wytten

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!brutus.cs.uiuc.edu!psuvax1!rutgers!umn-d-ub!cs.umn.edu!wytten
From: wytten@umn-cs.cs.umn.edu (Dale R. Wyttenbach)
Newsgroups: comp.lang.postscript
Subject: need *simple* way to print ascii files on laserwriter
Message-ID: <1990Feb2.220910.16236@umn-cs.cs.umn.edu>
Date: 2 Feb 90 22:09:10 GMT
Sender: wytten@umn-cs.cs.umn.edu (Dale R. Wyttenbach)
Organization: University of Minnesota, Minneapolis - CSCI Dept.
Lines: 27