🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #10705

Re: Printing from tin to ansi?

#10705
From: Roger J. Allen
Date: Sun, 07 Aug 1994 22:44
31 lines
2104 bytes
Jay Hennigan (jay@rain.org) wrote:
: I'm looking for the procedure to set tin up in such a way that the "o" 
: command directs output to the user's ansi-attached printer.  In pine, one 
: just puts "printer=attached-to-ansi" in the .pinerc file.   This doesn't 
: work in the tinrc file.  Any ideas?
:  
: Jay Hennigan
: jay@rain.org

Make a script or program that outputs "whatever characters your device
needs to redirect the output to the printer port", outputs the file,
then outputs "whatever characters your device needs to stop redirecting
the output to the printer port".  You can then change your Printer
command that tin uses to the name of this script/program.

Something like this might work:

 #!/bin/sh
 echo Esc[4i
 cat $*
 echo Esc[5i

Of course, the 'Esc' should be whatever it takes for your echo to
output an escape character.  It is not very robust.  If you miss
the output of the last echo, then you will have to stop the redirection
before you can see any output on your screen.
--
Roger J. Allen                Rush-Presbyterian-St. Luke's Medical Center
System Administrator                                   Chicago,  IL   USA 
Surgical Information Systems                       Voice:  (312)-942-4825
Internet: rja@sis.rpslmc.edu                         FAX:  (312)-942-4228
Technical Details
Message-ID: <1994Aug7.224435.6670@rpslmc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!commando!rja
References: <320vfo$rkv@rain.org>

Show Full Headers
Complete Article Headers
Message-ID: <1994Aug7.224435.6670@rpslmc.edu>
Subject: Re: Printing from tin to ansi?
Date: Sun, 7 Aug 1994 22:44:35 GMT
From: rja@sispro.sis.rpslmc.edu (Roger J. Allen)
References: <320vfo$rkv@rain.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!commando!rja
Newsgroups: news.software.readers
Sender: news@rpslmc.edu
Nntp-Posting-Host: siss81.rpslmc.edu
Organization: Rush-Presbyterian-St. Luke's Medical Center
X-Newsreader: TIN [version 1.2 PL2]
Lines: 31