delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/05/19:23:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 5 Mar 2001 16:10:02 -0800 (Pacific Standard Time)
From: Jason Tiller <jtiller AT sjm DOT com>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: Patch submission for AltGr handling
In-Reply-To: <4.3.2.7.2.20010305211847.024e2d60@mail.danbbs.dk>
Message-ID: <Pine.WNT.4.32.0103051604510.-140435@tiller2.ventritex.com>
X-X-Sender: jdtiller AT shell3 DOT ba DOT best DOT com
MIME-Version: 1.0

Hi, Gunnar, :)

We're talking about how to determine if the right <ALT> key (called
AltGr sometimes) should be used to generate META or not:

On Tue, 6 Mar 2001, Gunnar Degnbol wrote:
> At 19:44 05-03-2001 +0100, Corinna Vinschen wrote:

> >Could you please resubmit a patch which doesn't introduce
> >another CYGWIN option but instead uses automatic recognition
> >of the current keyboard setting? For example the expression
> >
> >if (PRIMARYLANGID (LOWORD (GetKeyboardLayout (0)) == LANG_ENGLISH)
> >should work.

> This checks if any characters are produced using the altgr key
> (altgr is converted to ctrl+alt):

> altgr = FALSE;
> for (i = 32; i < 256; i++) {
>      vk = VkKeyScan((char)i);
>      if (vk != -1 && (vk & 0x600) == 0x600) { /* ctrl+alt */
>          altgr = TRUE;
>          break;
>      }
> }

Thanks for the info.  However, I'm not sure I understand, Gunnar.  You
say flat out that AltGr is converted to <CTRL>+<ALT>... does this mean
that international keyboards can't use any of the 'Control-Meta'
keybindings in bash because the "meta-ness" is removed and AltGr
substituted instead?  I'm confused!

I was also wondering if you're implying that the VkKeyScan() technique
is a *better* choice than the GetKeyboardLayout() strategy?

Thanks for your ideas,

---Jason Tiller
jdtiller AT best DOT com (or jtiller AT sjm - sorry about the mixups)
Sonos


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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