Article View: news.software.readers
Article #29246Re: slrn: How can I print to a local lpr?
From: John E. Davis
Date: Sat, 11 Jan 1997 00:00
Date: Sat, 11 Jan 1997 00:00
39 lines
2356 bytes
2356 bytes
On 11 Jan 1997 16:46:54 GMT, Sandy Herring <sandy@herring.org> wrote: >I've just switched from tin to slrn (and love it!). I've read the >available docs and searched this newsgroup, but don't see any discussion >on how to print locally from my PC when telneted into my ISP w/vt100 >emulation and running slrn on my ISP's UNIX host. I can do this from >lynx. And I have a shell script which I substituted for 'default_printer' >in my tinrc that echo'd the proper escape code to open the print job and >then close it after cat'ing the output to the tty. But I don't see any >facility within slrn to spool an article to a printer. If this cannot >currently be done, is it slated to be an enhancement? This can be done via a macro or by piping the article to your shell script. The macro solution consists of defining a function and binding it to a key. See slrn/README.macros for information about macros and then look at slrn/macros/ttyprint.sl for an actual macro to print the current article on the printer attached to your terminal. After reading the relevant documentation, you will only need to add: set macro_directory "/WHERE/SLRN/IS/LOCATED/slrn/macros" interpret "util.sl" interpret "ttyprint.sl" The file `util.sl' needs loaded before ttyprint.sl because `ttyprint.sl' may use some of the macros that `util.sl' defines. Keep in mind that slrn needs to be compiled with macro support. Run `slrn --version' to see whether or not your slrn executable has macro support. Finally, these comments apply to slrn 0.9.2.1. -- John E. Davis Center for Space Research/AXAF Science Center 617-258-8119 MIT 37-662c, Cambridge, MA 02139 http://space.mit.edu/~davis
Technical Details
Message-ID:
<slrn5dfmfc.rt9.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn5dfgv8.s8s.sandy@linda.teleport.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn5dfmfc.rt9.davis@aluche.mit.edu> Subject: Re: slrn: How can I print to a local lpr? Date: Sat, 11 Jan 1997 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn5dfgv8.s8s.sandy@linda.teleport.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 209191507 Organization: Center for Space Research Reply-to: davis@space.mit.edu Newsgroups: news.software.readers