Subject: UNIX Pine printing through ANSI_PRINTER attached to vt100 terminal

From: [email-masked] (Patrick Miller)
Date: 31 Aug 1995 08:46:28 -0600

Can someone pull out the code which sends the print command to the
printer... I am wanting to compile it as a standalone program...

I don't have enough of a quota to view the HUGE pine source files (even in
tmp)

thanks

---

From: Mike Brudenell <[email-masked]>
Date: Thu, 31 Aug 1995 17:36:42 +0100 (BST)

Assuming you have the Pine 3.91 source distribution anywhere you will 
find the program you require already written (it is VERY simple!) in:

	contrib/utils/ansiprt.c

If you have the compressed tar archive but don't have the quota to unpack 
it all you can unpack just this one file using a command something like this:

	zcat pine3.91.tar.Z | tar xvf - pine3.91/contrib/utils/ansiprt.c

You may have to play around to get it exactly right; I'm at the end of 
the day here and tiredly heading home!

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/

---

From: [email-masked] (Mordechai T. Abzug)
Date: 1 Sep 1995 04:00:42 GMT

Patrick Miller ([email-masked]) wrote:

: Can someone pull out the code which sends the print command to the
: printer... I am wanting to compile it as a standalone program...

I know what you mean; did something similar.  You might want to generalize it
and include many ANSI codes, since lots are useful.

Printer-on is  "\033[5i", ie, ESC followed by left-bracket followed by 5i.
Printer-off is "\033[4i".

--
			     -Mordechai T. Abzug
Homepage:  http://www.gl.umbc.edu/~mabzug1   send email to:  [email-masked]
Spell chequers dew knot work write.