home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / dcom / modems / 19967 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  2.0 KB

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