lynx-dev
[Top][All Lists]
Advanced

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

Re: Small key re-mapping question (was Re: lynx-dev Link numbering and k


From: Webmaster Jim
Subject: Re: Small key re-mapping question (was Re: lynx-dev Link numbering and keypad mode)
Date: Tue, 16 Feb 1999 05:52:07 -0500

On Mon, Feb 15, 1999 at 11:17:47PM -0800, Michael Warner wrote:
> On or about 15 Feb, 1999, Henry Nelson <address@hidden> wrote:
> 
>       [...]
> 
> > But when I use TeraTerm on a Windows95 machine, or telnet on a
> > Fujitsu FMR, my definitions are:
> > KEYMAP:0x10C:HOME       # Home      (^[[2~) - Go to top of current document
> > KEYMAP:0x105:END        # End       (^[[5~) - Go to bottom of current 
> > document
> 
> I've got a haunting feeling that the answer to this is
> embarrassingly obvious, but how do you get from the control
> string - ^[[2~ - to the hex number?  For now, I'll just use
> your values, but I assume there's some more generalized way
> of getting them ....

There is no "hex number." TeraTerm (emulating a VT220 probably)
generates a series of keys (^[ is ESC, or 0x1b, [ is a square bracket,
0x5b, 2 is the number 2, 0x32, and the tilde means done with this string,
0x73).  The curses library interprets the incoming characters as a single
token to pass to Lynx code.

++++++++++++++++++++++++++++
Marvin the Paranoid Android.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]