delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/02/07:38:03

X-Recipient: archive-cygwin AT delorie DOT com
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
MIME-Version: 1.0
In-Reply-To: <4C559000.5030704@cornell.edu>
References: <i33von$834$1 AT dough DOT gmane DOT org> <4C559000 DOT 5030704 AT cornell DOT edu>
Date: Mon, 2 Aug 2010 12:37:46 +0100
Message-ID: <AANLkTimP6rc8QPOxnxo6e_TsC8OoUEL3d1Qhj_5Qnnpn@mail.gmail.com>
Subject: Re: Some key binding in Emacs not properly work in mintty.
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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<select> =C2=A0is undefined
>
> I can't reproduce this. =C2=A0If it still happens after you update your C=
ygwin
> installation (see below), please give a step-by-step recipe for reproduci=
ng
> 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. =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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019