Ticket #2307 (new defect)
Modified cursor keys not recognised in Cygwin xterm
Reported by: | andy.koppe | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-tty | Version: | 4.7.3 |
Keywords: | Cc: | mwisnicki@… | |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Shift+cursor key combinations do not work in Cygwin xterm (and the xterm-compatible mintty). I've tried it both with the 4.6.1 package that's still shipped with Cygwin, and with 4.7.3 built from source with 'configure --with-screen=ncursesw'.
Cygwin's terminfo, which is pretty much unmodified upstream, contains the following relevant entries for xterm (in the xterm+pcc2 fragment):
kLFT=\E[1;2D, kRIT=\E[1;2C, kind=\E[1;2B,
kri=\E[1;2A, kDN=\E[1;2B, kUP=\E[1;2A,
These do match the keycodes being sent. Now the strange thing is that if I remove those entries from terminfo.src and rebuilt the terminfo database, the shift+cursor key combinations work as expected. Similarly, they also work when running with TERM=rxvt, although of course that's a bad idea and other things break.
The same happens for combinations with Ctrl and Alt.