home *** CD-ROM | disk | FTP | other *** search
- pmlined 1.5, 11/4/90.
- Placed into the public domain by Daniel J. Bernstein.
- Comments to him at brnstnd@nyu.edu.
-
-
- This is pmlined, the poor man's line discipline.
-
- pmlined provides a tty editing mode that should make former IBM users
- feel right at home. You edit the current line on the status line
- (through stderr). Long lines scroll horizontally. When you press return,
- pmlined sends the line to stdout. All the usual editing characters,
- including ^U, ^W, backspace, delete, and ^V, work normally. ^A switches
- between this editing mode and the usual tty mode. In this version, you
- also get ^H and ^L to move the cursor back and forth within the line,
- and a 20-line editable history with ^B and ^F.
-
- Of course, pmlined is also the smallest line discipline implementation
- known to man.
-
- Other than that, it's pretty poor. This version is just a prototype. It
- could be made much more efficient; there are a lot of features missing.
- Feel free to play with it, though. The code is short and (I hope) easy
- to understand.
-
- pmlined was originally called botwana. It was not named after a small
- African country rumored to manufacture clone IBM 3270 terminals.
-
-
- Requirements:
-
- A termcap entry with ``ts'', ``fs'', and ``ce''. Enclosed is a generic
- VT termcap supporting the status line; you may have to rewrite your
- termcap entry analogously. In this version, the entry must also have
- ``us'' and ``ue'' for the cursor.
-
- The pty program, for use as described below.
-
-
- To use pmlined, type the following:
-
- pmlined | pty $SHELL
-
- It should feel just like a normal shell, except that you edit lines on
- the bottom of your screen before entering them. If you really are an IBM
- programmer, you might feel more comfortable with a shell prompt of R;
- followed by a newline. You may want to % alias ibm 'pmlined | pty'.
-
- A different use of pmlined is to make clean typescripts. If you have the
- script clone in the pty package,
-
- pmlined | script
-
- will let you correct editing errors before they enter the script.
-
-
- Caveats:
-
- You have to type something after the final ^D, or pmlined will not
- realize that the output has ended.
-
- pmlined does not react automatically to changes in the tty mode. When
- you run vi, for instance, you have to remember to type ^A to use
- character-at-a-time mode. A somewhat less pure design could deal with
- this automatically.
-
- pmlined doesn't understand tabs.
-
- pmlined's key bindings are hardwired.
-
- pmlined doesn't have macros, or help, or variables, or file
- completion, or signal characters, or anything else you'd expect out of
- a fancy line discipline. But it's easy to extend. (The first version
- didn't have a command history.)
-
-
- Good luck!
-