🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Jay Hennigan Sat, 06 Aug 1994 21:31
Printing from tin to ansi?
#10701
Author: Jay Hennigan
Date: Sat, 06 Aug 1994 21:31
7 lines
898 bytes
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
Re: Printing from tin to ansi?
#10705
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads