[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PT3 / PINE quirk



In article <4u9do9$8fk@nntp.seflin.lib.fl.us>
z008729b@bcfreenet.seflin.lib.fl.us (Martin Gruen) writes:
>  When I call into to one of the host computers I use, and read my mail 
>with PINE, when I quit out of it for the rest of the session my keypad 
>(including the enter key) generate garbage.
>  Can anyone explain where this problem is coming from?  Is it possible 
>that it's screwing up things at my end?

This is a feature of the VT100 emulation.  The keypad of a VT100 terminal
functions in two modes:  "normal mode", in which each key transmits the
symbol printed on the keycap, and "application mode", in which each key
sends an escape code (for example, keypad-0 sends "ESC ?p", keypad-enter
sends "ESC ?M", etc.).

Apparently Pine is switching your keypad into application mode, and not
switching it back on exit.

The terminal switches between modes when it receives one of the following
commands:

     ESC =     Switch to application mode
     ESC >     Switch to normal mode

Thus, if you can get to a UNIX shell prompt, you can return to normal mode
by typing this:

    echo '^V^[>'

(where "^V" is what you see when you press control-V, and "^[" is what you
see when you press ESC).

               - Neil Parker
-- 
Neil Parker                       | No cute quote, no cute ASCII art, no cute
nparker@cie-2.uoregon.edu         | disclaimer, no deposit, no return....
nparker@cie.uoregon.edu           | (This space intentionally left blank:
http://cie-2.uoregon.edu/~nparker |                                           )