public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Some key binding in Emacs not properly work in mintty.
Date: Mon, 02 Aug 2010 11:37:00 -0000	[thread overview]
Message-ID: <AANLkTimP6rc8QPOxnxo6e_TsC8OoUEL3d1Qhj_5Qnnpn@mail.gmail.com> (raw)
In-Reply-To: <4C559000.5030704@cornell.edu>

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

  reply	other threads:[~2010-08-02 11:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-01 14:19 Oleksandr Gavenko
2010-08-01 15:17 ` Ken Brown
2010-08-02 11:37   ` Andy Koppe [this message]
2010-08-02 14:09     ` Ken Brown
2010-08-04 19:08       ` Andy Koppe
2010-08-04 19:40         ` Gary
2010-08-05  6:58           ` Oleksandr Gavenko
2010-08-05  7:30             ` Gary

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimP6rc8QPOxnxo6e_TsC8OoUEL3d1Qhj_5Qnnpn@mail.gmail.com \
    --to=andy.koppe@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).