Keys not being interpreted by ncurses Keys not being interpreted by ncurses unix unix

Keys not being interpreted by ncurses


gnome-terminal is not an xterm. It sends different combinations for shift-arrow and control-arrow. With ncurses version 5.5 setting TERM to gnome will probably work.

Here is some information:http://invisible-island.net/xterm/xterm.faq.html#bug_gnometerm


There's a good chance that gnome-terminal is intercepting your SHIFT-arrow keys for its own purposes. I would suggest running your application in xterm or from the console.


I have done a raw [ cfmakeraw ] STDIN scan using EPOLL. And I can confirm that SHIFT+LEFT; SHIFT+RIGHT; are NOT "scanned". So how does XLib client read those keys ?

XLib client/driver uses direct keyboard drivers (using good old BIOS's multiplex Hardware INTERRUPT hooks)...There are no other ways to "scan" [Forgotten RAW] keyboard state ) :-)

NCurses is a client of the serial /dev/TTY* for the obvious networking reasons - Not a hardware hook.