-
Janed
-
RE: Display all 2516 possibilities?
-
[b]mfillpot wrote:[/b]
[quote]
In that case it sound like xmodmap has your arrow key mapped to the ESC keyslot, you can check the mapping by using "xmodmap -pke" and also use the program to key the correct key.
[/quote]
xmodmap -pke shows:
keycode 9 = Escape
...
keycode 98 = Up
so its unlikely what's going on, because the program uses ncurses getch() for key input where KEY_UP is used to move something in the Y direction, KEY_RIGHT in the X direction, and so forth until a key not defined such as Esc is hit, then it exits the loop. (I know, I know, don't use the Esc key. But that habit is ingrained in my muscle-memory from other programs). What is interesting is if I hit the Esc key hard-and-fast there is no problem. Its only when I hit it in a normal fashion, say a quarter-second or longer, that the 2516 possibilities arise. I wonder if perhaps there some way to purge the key buffer since there doesn't seem to be a keycode for ESC available for the getch() function?
-
13 Dec 10
mfillpot wrote:
In that case it sound like xmodmap has your arrow key mapped to the ESC keyslot, you can check the mapping by using "xmodmap -pke" and also use the program to key the correct key.
xmodmap -pke shows:
keycode 9 = Escape
...
keycode 98 = Up
so its unlikely what's going on, because the program uses ncurses getch() for key input where KEY_UP is used to move something in the Y direction, KEY_RIGHT in the X direction, and so forth until a key not defined such as Esc is hit, then it exits the loop. (I know, I know, don't use the Esc key. But that habit is ingrained in my muscle-memory from other programs). What is interesting is if I hit the Esc key hard-and-fast there is no problem. Its only when I hit it in a normal fashion, say a quarter-second or longer, that the 2516 possibilities arise. I wonder if perhaps there some way to purge the key buffer since there doesn't seem to be a keycode for ESC available for the getch() function?