bug-ncurses
[Top][All Lists]
Advanced

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

Re: Cursor keys on numeric keypad


From: Thomas Dickey
Subject: Re: Cursor keys on numeric keypad
Date: Wed, 15 Jul 2009 17:30:31 -0400 (EDT)

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




reply via email to

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