View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

custom printer definitions in the graphcap file

Guest wrote on May 24, 2006

Dear Iraf Guru's,
My group has been using IRAF for a very long time. About a year ago we got
a new Xerox Phasor printer. However, we can't print to this printer from
within IRAF as there is not an entry for it in the graphcaps file. Since
this file has some rather mysterious entries in it, how do I go about
defining this printer?

Thanks,
Katrina Gressett

--
___________________________________________________________
Katrina Gressett
NSO/GONG -- Data Reduction Specialist
gressett@noao.edu
520.318.8568
___________________________________________________________

Post generated using Mail2Forum (http://www.mail2forum.com)

Mike Fitzpatrick wrote on May 24, 2006

Katrina,

The default print device in IRAF is 'lp' (i.e. the 'stdplot' or 'printer' env variables), which means that in the case of graphics PostScript is sent to the printer using a simple 'lpr' command. If the Xerox is the default printer on the machine, or is named by the PRINTER unix environment variable in your .cshrc file (not .login), it will be the default iraf printer as well. In some cases there are problems because the machine uses 'lp' to print and the 'lpr' command is not available -- you can either just install the lpr command (details vary on platform), or else edit the dev$graphcap and dev$termcap (for text) file. For the dev$graphcap find the 'g-lpr' entry (for dev$termcap it is 'glpr') and simply change the 'lpr' command to be 'lp'.

If you want this to be a named device, see the FAQ on the subject at http://iraf.net/faqman/index.php?op=view&t=73

-Mike

Last post on May 24, 2006