Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!icdoc!syma!grahamt From: grahamt@syma.sussex.ac.uk (Graham S Thomas) Newsgroups: comp.mail.elm Subject: Re: Printing from ELM to a printer attached to a PC Message-ID: <5290@syma.sussex.ac.uk> Date: 6 Jun 91 13:25:46 GMT References: <1991Jun5.174013.16184@oakhill.sps.mot.com> Organization: SPRU, Univ. of Sussex, Brighton, UK Lines: 41 From article <1991Jun5.174013.16184@oakhill.sps.mot.com>, by dwolfe@oakhill.sps.mot.com (Dave Wolfe): > In <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. We have a program called micropr on our Unix machine, which sends a file to a printer attached to a PC being used as a terminal. Like you, we found that the 'print' variable in elmrc doesn't let us use this. However, we also found an easy solution. Make sure the message you want to print is highlighted, then issue the pipe command '|'. Elm will ask you which program you want to pipe the message through. We just type in 'micropr', and it works. Something analogous ought to work for your pspr program. Best of luck, Graham this for the 50% rule. -- Graham Thomas, SPRU, Mantell Building, U of Sussex, Brighton, BN1 9RF, UK Email: grahamt@syma.sussex.ac.uk Phone: +44 273 678165 Fax: .. 685865