I'm giving emacs a go, and running it in mintty / Cygwin on Windows.
I'm running emacs version 24.3.1.
I've found that emacs uses ephemeral mode text selection by default these days, with Shift + arrow keys used for selecting text, like most modern UIs.
However, there is one key binding that isn't working inside mintty: Shift+Up.
How do I get it to work?
I figured it was something wrong in the terminfo settings for xterm, which is what mintty emulates.
I used esr's
showkey
to dump what the terminal was sending for Shift-Up, Shift-Down:I decompiled the terminfo entries for
xterm
(which didn't work properly) andrxvt
(which did, when run in an rxvt terminal) withinfocmp -L xterm
andinfocmp -L rxvt
, and noticed that the sequences above were mapped forxterm
tokey_sr
(kind
) andkey_sf
(kri
) - see the definition of those guys here. Butrxvt
had no such entries.So I tweaked the entries:
Applied this change:
Compiled and installed updated xterm:
This fixed selection with Shift+Up in emacs.