bug-ncurses
[Top][All Lists]
Advanced

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

Re: keypad problem


From: Thomas Dickey
Subject: Re: keypad problem
Date: Sun, 3 Feb 2002 11:18:40 -0500
User-agent: Mutt/1.2.5i

On Sun, Feb 03, 2002 at 05:01:38PM +0100, Vincent Lefevre wrote:
> Keypad digits don't work with ncurses in application mode.
> For instance, when I type "2", Mutt says:
> 
>   Key is not bound.  Press '?' for help.
> 
> Emacs says that ESC O r is sent.

That sounds right.  Odd as it may seem, terminfo was not designed to make it
simple to use the vt100 keypad.  The following (man terminfo) applies, but is
not necessarily implemented for all of the related terminfo entries:

       backward/up), khts (set a tab stop in  this  column).   In
       addition, if the keypad has a 3 by 3 array of keys includ-
       ing the four arrow keys, the other five keys can be  given
       as  ka1,  ka3,  kb2,  kc1, and kc3.  These keys are useful
       when the effects of a 3 by 3 directional pad are needed.

Note that it only defines 5 keys (vt100 keypad has 18).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

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