From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26628 invoked by alias); 2 Aug 2010 11:37:56 -0000 Received: (qmail 26620 invoked by uid 22791); 2 Aug 2010 11:37:55 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yw0-f43.google.com (HELO mail-yw0-f43.google.com) (209.85.213.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Aug 2010 11:37:48 +0000 Received: by ywf7 with SMTP id 7so1910455ywf.2 for ; Mon, 02 Aug 2010 04:37:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.146.20 with SMTP id t20mr3127462ybd.134.1280749066980; Mon, 02 Aug 2010 04:37:46 -0700 (PDT) Received: by 10.150.226.15 with HTTP; Mon, 2 Aug 2010 04:37:46 -0700 (PDT) In-Reply-To: <4C559000.5030704@cornell.edu> References: <4C559000.5030704@cornell.edu> Date: Mon, 02 Aug 2010 11:37:00 -0000 Message-ID: Subject: Re: Some key binding in Emacs not properly work in mintty. From: Andy Koppe To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-08/txt/msg00024.txt.bz2 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: >> >> =C2=A0 =C2=A0 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. Emacs think that >> I press. > > I think this is a mintty issue. =C2=A0I'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