home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2017 / README < prev    next >
Encoding:
Text File  |  1990-12-28  |  2.4 KB  |  73 lines

  1. pmlined 1.0, 10/31/90.
  2. Placed into the public domain by Daniel J. Bernstein.
  3. Comments to him at brnstnd@nyu.edu.
  4.  
  5.  
  6. This is pmlined, the poor man's line discipline.
  7.  
  8. pmlined provides a tty editing mode that should make former IBM users
  9. feel right at home. You edit the current line on the status line
  10. (through stderr). Long lines scroll horizontally. When you press return,
  11. pmlined sends the line to stdout. All the usual editing characters,
  12. including ^U, ^W, backspace, delete, and ^V, work normally. ^A switches
  13. between this editing mode and the usual tty mode.
  14.  
  15. Of course, pmlined is also the smallest line discipline implementation
  16. known to man.
  17.  
  18. Other than that, it's pretty poor. This version is just a prototype. It
  19. could be made much more efficient; there are a lot of features missing.
  20. Feel free to play with it, though. The code is short and (I hope) easy
  21. to understand.
  22.  
  23. pmlined was originally called botwana. It was not named after a small
  24. African country rumored to manufacture clone IBM 3270 terminals.
  25.  
  26.  
  27. Requirements:
  28.  
  29.   A termcap entry with ``ts'', ``fs'', and ``ce''. Enclosed is a generic
  30.   VT termcap supporting the status line; you may have to rewrite your
  31.   termcap entry analogously.
  32.  
  33.   The pty program, for use as described below.
  34.  
  35.  
  36. To use pmlined, type the following:
  37.  
  38.   pmlined | pty $SHELL
  39.  
  40. It should feel just like a normal shell, except that you edit lines on
  41. the bottom of your screen before entering them. If you really are an IBM
  42. programmer, you might feel more comfortable with a shell prompt of R;
  43. followed by a newline. You may want to % alias ibm 'pmlined | pty'.
  44.  
  45. A different use of pmlined is to make clean typescripts. If you have the
  46. script clone in the pty package,
  47.  
  48.   pmlined | script
  49.  
  50. will let you correct editing errors before they enter the script.
  51.   
  52.  
  53. Caveats:
  54.  
  55.   You have to type something after the final ^D, or pmlined will not
  56.   realize that the output has ended.
  57.  
  58.   pmlined does not react automatically to changes in the tty mode. When
  59.   you run vi, for instance, you have to remember to type ^A to use
  60.   character-at-a-time mode. A somewhat less pure design could deal with
  61.   this automatically.
  62.  
  63.   pmlined doesn't understand tabs.
  64.  
  65.   pmlined's key bindings are hardwired.
  66.  
  67.   pmlined doesn't have macros, or a command history, or help, or
  68.   variables, or file completion, or signal characters, or anything else
  69.   you'd expect out of a fancy line discipline. But it's easy to extend.
  70.  
  71.  
  72. Good luck!
  73.