X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 294143851C01
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=towo.net
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo@towo.net
Subject: Re: AltGr key and mintty
To: cygwin@cygwin.com
References: <20200607115043.GA6281@GIOVE>
From: Thomas Wolff <towo@towo.net>
X-Tagtoolbar-Keys: D20200607145525619
Message-ID: <895a1699-325d-72f2-9000-9213ed88532e@towo.net>
Date: Sun, 7 Jun 2020 14:55:25 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
 Thunderbird/68.9.0
MIME-Version: 1.0
In-Reply-To: <20200607115043.GA6281@GIOVE>
X-Provags-ID: V03:K1:zibHBmAyUj8454H8lRWrElaC7TNR3i45pwd6c4IoS+fGH0mac0f
 8+GdEPuEqIvlI+8/V6S0JCRE18YeBdi90cIL82xb5CULZE7PvqamNtnkwDvxQeVWcX2BC01
 9NJr0f8AtqKwqthKBslCodxWihNfCBIG3dhwd+OSjgD5IuBl7OocnxKP4S/7/oYWNHIkwJe
 LJ/LZrzdwOzoz1FKZmbOQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:UXptpvZcV5I=:k3EB+s5Mqfb/sUexXf5I67
 77QyyJjDeRTY0sRWQljJY41Lp3Bz8pkxm4fzMDXtlq5acCHCBSzIIEmzek9HGja573wHO5Z39
 XLngdfBAFL/MJYWwyQggLCIY+51zLqzRfRke5MZFkMdFRo2GY9Sw6bZ0HkjG7dBEeSKnJZ8tW
 yECeZaaII4ShBOY4RlRvWX93vwO5cYZ+JHS37SEddEtXmfzO4ycP5MhO8rVA+17WBAUb1llDp
 r9dlAPDKylr1Ng8OYpv+W3RAbPprVyoUjyqdHdbJBE6T+Hn+h8OITvvHaceZP4Ygd/JskU2i5
 UQQcfrdwBMtEDtl0mJl4L0nQfR9VBN6CyJCByjwqfZJss5bF9VOBp51ZuuuqlVQ3OdtlTqxL6
 vaxjb+ZTfkC3kwPXZwl258UUsiWCS+FBYdK2sDGhtakYctrp+fN7srstHvgJpftxJ8T8qGSkD
 YgGLS+Eo/+VjPToLSjRoqqTzVTY29es9910MXedF4FqQtBzuux/ZftvK6d3Tao49ZYHiuqnVJ
 FXONJbJ4UOGLT1+FZza/lFtoVFFZoJF876GcwvshQ4722W2rowkWH3jAU88gtWogGAAuy/e+G
 lVwRLvDqsUeRlnVueEF4Z8U2Nx5vX/fXXS8XlZ7n4qqPDXS7i5vJdOJkDV8RuoMlI0k+Aoo8I
 JZ7luksS8rzyt4ggCD/3zAsbxRXD6AxlMPhYiKonEe2LS4zHIVJXbojXb78p30iCKgjlSMRxl
 85ACO6e+7MWJmaLmT8Y+2K2f36oN+SyUFNFeqD2EkEsOV/grgi6Y8rAmPkDMuhzGAlNsb4g0/
 Uq8HLAtnpgxVHGpTMxf2DqNkZF7UarQwpLBC7+2lLOVqoerv2U=
X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,
 SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Am 07.06.2020 um 13:50 schrieb Enrico Forestieri:
> According to
> https://github.com/mintty/mintty/wiki/Keycodes#altgr
> when the keyboard layout does not have a keycode for an AltGr
> combination, the AltGr key is treated as Alt instead.
There were some recent tweaks to ensure consistent handling of AltGr and 
right-Alt and I was not aware of that section in the wiki (it was there 
before my time...).
However, I do not reproduce your particular issue:

> I have the following entry in ~/.inputrc
>
> "\e'": "`"			# Alt+' -> `
>
> and, as AltGr+' is not a valid combination in my keyboard layout,
> until mintty 3.1.6 by pressing it I was obtaining the wanted backtick character.
> However, since mintty 3.1.7, this key combination now produces nothing.
Works for me when switching to US keyboard layout. Which layout do you use?

> One has to explicitly use LeftALt+' to obtain the backtick.
That is the proper way now enforced if the right Alt key is in fact 
AltGr. If it's not, right-Alt+' etc should work alike, as it does here.
> This is inconvenient because one needs to use both hands,
> while AltGr+' can be easily triggered with a single hand.
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
