|
From: | Mike Aubury |
Subject: | Re: Cursor keys on numeric keypad |
Date: | Thu, 16 Jul 2009 07:08:35 +0100 |
On Wed, 15 Jul 2009, Mike Aubury wrote:
My applications are working fine with the normal cursor keys - but dont work
with the ones on the numeric keypad (with NUM LOCK turned off!)..
That's because the numeric keypad can be set in a variety of states,
while terminfo (and (n)curses) assume only one state.
Using 'bash' with the same keyboard/terminal (eg. when my application finished
) seems to manage to use them without issues...
I've seen some bits on google about a terminal capability 'ks' and/or 'ke'.
That's termcap - which would correspond to the keypad() function in curses.
Is there some extra initialization code I might be missing ?
(I've set keypad etc - as I say - normal cursor keys work just fine)
No - you could use define_key() to add terminal-specific bindings at runtime...
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |