Subject: Print-to-Ansi

From: Sridhar Krishnan <[email-masked]>
Date: Wed, 17 May 1995 18:12:13 -0700 (PDT)

Pine uses "<ESC>[5i" and "<ESC>[6i" to print on a desktop printer 
connected to the ANSI terminal or the terminal emulator. This works fine.
I like this feature. So I tried to emulate the Pine print command by 
writing a script file called dprint (Unix):
   # dprint file-name
   echo "\033[5i"
   cat $1
   echo "\033[6i" 

This could re-direct printing to my desktop printer. My
terminal emulator *hangs* (actually everything is redirected to the
printer, so I can't see) when I execute the script. When I close my
emulator (Windows based), I get a print-out. I never got the Unix prompt
back. 

What am I doing wrong ? I even tried sending a ^D after the cat.

Though this is not a Pine question, I am sure somebody out here knows the 
answer.

Thanks in advance.
-- Sridhar ([email-masked])

---

From: [email-masked] (Dwhisnant)
Date: 19 May 1995 10:28:36 -0400

Try "<ESC>[5i" to print and "<ESC>[4i" to get back to your emulator.

This works for me using Procomm, vt100.