Subject: How does PINE print-to-ansi?

From: [email-masked] (Ian Goh)
Date: Wed, 21 Jun 1995 10:54:38 -0500

Hi Everyone,

I have a UNIX user who loves how PINE can print out a message to his
local Macintosh printer (using NCSA Telnet).  He'd like to be able to
do this from the "$" prompt with other text files.  Does anyone know
how PINE does the print-to-ansi?  Is there a stand-alone utility that
will do the trick (and where do I find it?!).

Thanks!

--- Ian ---
-- 
Microcomputer Support Specialist    E-mail: [email-masked]
Homewood Academic Computing         Phone : (410) 516-8096
Johns Hopkins University

---

From: Don Sugarman <[email-masked]>
Date: Wed, 21 Jun 1995 11:56:18 -0400 (EDT)

Pine sends the ANSI print-through command (<esc>[5i) to the 
terminal/emulator, sends the message, then sends the ANSI 
cancel-print-through command (<esc>[4i).  I believe this command is 
compatible with most DEC vtxxx terminals.

---

From: Mike Brudenell <[email-masked]>
Date: Wed, 21 Jun 1995 17:30:32 +0100 (BST)

There is a standard pair of VT100 escape sequences that instruct the 
terminal (emulator) to go into "bypass to printer" mode and back.  If you 
select the "attached to ansi" option in Pine it sends these at the start 
and end of the message text.

If you look in the contrib/utils directory within the Pine distribution 
you will find a little program written in C that can be used as a filter 
to achieve the same effect.  ie,
	ansiprt <filename

Mike Brudenell                                         <[email-masked]>
------------------------------------------------------------------------------
The Computing Service, University of York, Heslington, York, YO1 5DD, UK
Tel: +44-1904-433811  FAX: +44-1904-433740  http://www.york.ac.uk/~pmb1/