On 1 August 2010 16:17, Ken Brown wrote: > On 8/1/2010 10:18 AM, Oleksandr Gavenko wrote: >> >> Selection by Ctrl-Left/Right/Down work properly. >> But for Ctrl-Up Emacs say: >> >> <select> is undefined > > I can't reproduce this. If it still happens after you update your Cygwin > installation (see below), please give a step-by-step recipe for reproducing > the problem.
Looks like Oleksandr meant Shift- rather than Ctrl-, because I do get the "<select> is undefined" message with Shift-Up. Same thing happens in xterm, so I don't know what's up with that. >> Also I have trouble with<C-backspace>. Emacs think that >> I press<undo>. > > I think this is a mintty issue. I'll let Andy comment. Unfortunately terminals don't have a standard keycode for Ctrl+Backspace, hence in emacs it won't do what's expected in any of them. In rxvt, it sends the same as plain Backspace. In xterm, it sends ^H, which will invoke the help. In mintty, it sends ^_ (i.e. 0x1F), which will indeed invoke Undo. This could be addressed by using the 'modifyOtherKeys' mode introduced by xterm. This is enabled with '\e[>4;1m' and disabled with '\e[>4n'. Apart from Backspace, it affects modifier combinations with Enter, Tab, as well as number and symbol keys. With modifyOtherKeys mode enabled, Ctrl+Backspace sends the following keycode: '\e[127;5u'. (The 127 is the decimal ASCII code for ^?, whereas the 5 indicates the Ctrl.) I'm afraid I don't know how this could be put to use in emacs. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple