Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!clout!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.mail.elm Subject: Re: Printing from ELM to a printer attached to a PC Message-ID: <1991Jun05.200545.29483@chinet.chi.il.us> Date: 5 Jun 91 20:05:45 GMT References: <1991Jun5.141703.522@cm.cf.ac.uk> Organization: Chinet - Chicago Public Access UNIX Lines: 23 In article <1991Jun5.141703.522@cm.cf.ac.uk> cookc@computing-maths.cardiff.ac.uk (Chris Cook) writes: >I've been trying to work out a way that you can print directly from Elm to >a printer attached to a PC. Several Vt100 emulators allow you to print >direct to an attached printer by sending the sequences [5i [4i before >and after the desired section of text. The printer in question is a Postscript >printer so we would have to pass it through a filter on the way. All this is >done by the local command > pspr -v filename >I've tried inserting this into the options page >PRINT = pspr -v %s >but the best I get is the message is sent to the default print queue. Is there >something in Elm that says if the print option is invalid, send it to some sort >of default? If the pspr program can take standard input, try using "|pspr -v" instead of "p" to print. I've never understood why print isn't just a special case of piping or why elm doesn't just send out the data directly instead of making readmsg parse the headers all over again each time you print. If pspr insists on having a filename, you can make a little shell script to capture stdin to a file before executing it. Les Mikesell les@chinet.chi.il.us