delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
q=dns; s=default; b=ukJDNg4q10KSYaVKszuOLyDZ39maCHSMTeqLVATaSAH | |
IJ72NIiv+9xxG+AF9pIWQ1R2RvQBIvjnv372EXCro+2sQehJDLQeVQEEdkZHEaIY | |
aUoCH2ZbpyKZR7yneawX2ycvBuclCiFrKPa7Mxs5wedSdXmK+MSws0KON7ZlbyNA | |
= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type:content-transfer-encoding; | |
s=default; bh=/oZw689CcwO8tL7TQm+uXMfOaPU=; b=WiQpi5Or4AveHFSc7 | |
2oVTKG9qEB3v07njXhpq4E4aipezP23DylzuCaOYBwxezI3Wfyt8+XbA4W11ZeI7 | |
JhxBRWZ9a8pq//bDZqR92bBuy/nITXnWtRS+LrY2x9GmzcUEs9AtImFQUL48Wk7e | |
KYj78GMnCuRBIWCMEmbfeJ48e0= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
X-Spam-SWARE-Status: | No, score=-2.3 required=5.0 tests=AWL,BAYES_05,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_HELO_PASS autolearn=ham version=3.3.1 |
Message-ID: | <5172FA88.6010001@towo.net> |
Date: | Sat, 20 Apr 2013 22:28:56 +0200 |
From: | Thomas Wolff <towo AT towo DOT net> |
User-Agent: | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: mintty and Control-` , Control-~ |
References: | <CADd11yXqNrSfOEj4Lmf5KyVUL0TWkosEb=3yNprCyLLk_PK-iQ AT mail DOT gmail DOT com> <514B2CEF DOT 3090100 AT cs DOT utoronto DOT ca> <CAHWeT-ay8NpcVV+z34wEvwd11LkT8L0ib+AiFE5gGmDT_F39VQ AT mail DOT gmail DOT com> |
In-Reply-To: | <CAHWeT-ay8NpcVV+z34wEvwd11LkT8L0ib+AiFE5gGmDT_F39VQ@mail.gmail.com> |
X-TagToolbar-Keys: | D20130420222856062 |
Am 20.04.2013 22:14, schrieb Andy Koppe: > On 21 March 2013 15:53, Ryan Johnson wrote: >> On 21/03/2013 11:30 AM, Igor Bukanov wrote: >>> It seems that mintty in Cygwin under Windows-7 does not pass C-` >>> (Control-backtick, in US keyboard this is the key above the tab) nor >>> C-~ (or Control-Shift-backtick) to terminal applications. Any reason >>> for that? >> A quick test [3] in shortcut override mode [1] suggests that mintty never >> receives that key combination in the first place. > Nah, it does receive it alright. Well, for me anyay. Shortcut override > mode only affects combinations that mintty normally uses for its own > purposes, for example Shift+Insert for paste. > >> However, trying the same test in xterm, I get \000 and \036 for C-` and C-~, >> respectively. Neither of those seems to be correct [2] (\000 is ^@ and \036 >> is ^^) > Indeed. Backtick and tilde don't directly correspond to control > characters, so mintty doesn't send anything for them. > > What you can do is enable the so-called modifyOtherKeys mode (which > comes from xterm), in which case mintty sends the keycodes specified > on the following page for combinations that don't have a standard > keycode: > > http://www.leonerd.org.uk/hacks/fixterms/ > > The following will enable modifyOtherKeys mode level 1: > > $ echo -ne '\e[>4;1m' > > There's also a level 2, in which those special keycodes are sent even > for standard combinations such as Ctrl+letter. > > $ echo -ne '\e[>4;2m' > >> but it's still odd that xterm can receive key codes that mintty misses. > I guess I decided not to support those keycodes for Ctrl+` and Ctrl+~ > because they're not intuitive and they just send the same as Ctrl+@ > and Ctrl+^ (and also Ctrl+Space and Ctrl+Enter) anyway. > > In order to make them useful without enabling modifyOtherKeys mode, > how about if Ctrl combinations with backtick (ASCII 0x60), opening and > closing brace (0x7B and 0x7D), pipe (0x7C), and tilde (0x7E) were > mapped to C1 control characters (in the U+0080 to U+009E range). I don't think it's useful to support C1 control characters because virtually nobody will ever want to input them via keyboard; even more if only a random subset of C1 can be supported this is only confusing. > Incidentally, on US and UK keyboards (and others) that's what already > happens for the braces and pipe symbol, because for example the pipe > symbol is typed with Shift+\, and mintty maps Ctrl+Shift+\ to U+009C > as explained at http://code.google.com/p/mintty/wiki/Keycodes#Ctrl. I would drop those, too. > I hope I've suitably confused matters now. Yes :) Thomas -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |