Welcome to iraf.net Sunday, May 19 2024 @ 05:42 PM GMT
Anonymous: Guest |
03/28/1992 08:24PM (Read 408 times)
|
|
|
|
Albert,
I think we're really starting to get away from the problem here.
If printing out a formatted help file to your printer is simply a matter
of removing the ^N, ^O, and ^L control characters to turn it into plain
text (which I assume you can print), you can do this with a simple filter
script such as: #!/bin/csh -f
cat $1 | sed -e "s/^N//g" | sed -e "s/^O//g" | sed -e "s/^L//g" | lpr(Note that for purposes of mailing the ^N and such are actually the chars
'^' and 'N', but if you implement the script you will have to actually use
ctrl-N). From the CL you would first get the help document by saving it to
a file and then printing it as in:
cl> help gio.hlp fi+ page- dev="text" > file
cl> !filter file
The output from this is just formatted text with no control chars.
The troff macros I sent you were developed locally to see if we could
get nicer looking help pages. They may not be complete and aren't fully
supported as part of IRAF. I included them hoping they might help but
I may have mislead you to believe that that was the way to print the docs.
We have other sites with HP III series printers and various PostScript
cartridges, all of whom seem to be happy with the results and haven't had to
resort to replacing nroff to get output. As I said before, you may just need
a filter defined in you /etc/printcap file to turn on/off the PS cartridge
for text output. Since enscript turns all files into PostScript you don't
need to worry about this, but it shouldn't be that hard to get a filter
going if needed (I there was one around on Usenet for a while).-Mike
|
|
|
|
| |
|