home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!yale.edu!not-for-mail
- From: muench-philip@math.yale.edu (Philip Muench)
- Newsgroups: comp.dcom.modems
- Subject: Re: Program for printing a file from a UNIX machine to a Local printer
- Date: 25 Jan 1993 05:50:32 -0500
- Organization: Yale University Mathematics Dept., New Haven, CT 06520-2155
- Lines: 45
- Message-ID: <1k0gloINNgck@CANTOR.MATH.YALE.EDU>
- References: <2B4DDA14.14499@ics.uci.edu> <1993Jan11.193132.7331@leland.Stanford.EDU> <1993Jan18.032728.3932@unlv.edu>
- NNTP-Posting-Host: cantor.math.yale.edu
-
- In article <1993Jan18.032728.3932@unlv.edu> jframe@unlv.edu (Jason Frame) writes:
- >In article <1993Jan11.193132.7331@leland.Stanford.EDU> johnw@leland.Stanford.EDU (John Wiederhold) writes:
- >>
- >>The following shell script should do the trick:
- >>----------------------------CUT HERE-----------------------------
- >>#!/bin/sh
- >>echo -n '<ESC>[5i'
- >>if [ $# -eq 0 ]; then
- >> cat
- >>else
- >> cat $*
- >>fi
- >>echo
- >>echo -n '<ESC>[4i'
- >>---------------------------CUT HERE-------------------------------
- >>
- >>Replace the "<ESC>" with the escape character (ASCII 27 I think).
- >>This should work on any good vt100 terminal, including Kermit and Telix.
- >>I call the script "pcprint" and you can type "pcprint filename" as well
- >>as pipe output directly to it.
- >>
- >>-John
- >>
- > Could someone give me a hint on how to replace the <ESC> with the
- >escape editor. I tried with emacs, but I couldnt get it to work
- >right. Any help will be appreciated.
- >
- >Thanks in advance.
- >
- >Jason
- >jframe@unlv.edu
- >
- >
-
- If emacs is not putting in the escape character for you because
- it expects you to use Control-Q as the quoted-insert command
- but the operating system or some layer in you path to it intercepts
- the Control-Q, taking it as a flow-control, try this trick:
- ESC x q u o t e d - i n s e r t RETURN
- That should make emacs prompt you for the character to be inserted,
- and you may then press ESC to insert it. I have presumed that
- ESC x
- is the way to invoke execute-extended-command in your emacs session.
- -Philip Muench
- muench@cantor.cs.yale.edu 128.36.23.26
-