This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Suggestion for terminal package maintainers

On Jun  3 08:03, Ken Brown wrote:
> On 6/3/2009 7:09 AM, Corinna Vinschen wrote:
>> Even not knowing the sequence returned by Alt-Backspace, AFAICS, the
>> right thing to do is to send either ^[^? or \377, dependent on the
>> setting of dev_state->metabit.  That's how the META key is usually
>> defined and it brings back the old Alt-Backspace functionality to tcsh.
> As long as you're changing the Cygwin console to be more compatible with  
> linux and/or xterm, let me just mention that some key combinations  
> involving the control key don't work in the Cygwin console the way they  
> do in linux and xterm.  Here are two specific examples I've noticed, but  
> I haven't made an exhaustive search:
> 1. Control-<space> appears to generate <space> in the cygwin console.

Right.  That's because the space key does not return any other character
then 0x20 in the Windows console, regardless of the modifier keys you're
pressing.  Same goes for Alt-Space which should ideally return Esc-Space
or \240.  Maybe we should really add that while we're at it.

> 2. Control-Alt-<any key> does not appear to generate anything (or maybe  
> it generates NUL).

That's a longstanding problem which probably can't be fixed satisfingly.
On non-English keyboards, the right Alt key is called AltGr and returns
the modifiers Left-Control/Right-Alt.  It's used to enter certain
characters which are not accessible using the normla keys with just the
shift modifier.  For instance, on a german keyboard, the keys [/{ and
]/} are replaced with Umlaut-u and +/* keys.  To enter the square and
curly braces, one has to type AltGr-7 up to AltGr-0.  The problem is,
you can't distinguish between pressing Ctrl+Alt and pressing AltGr on
these keyboards (or rather, in these keyboard settings).


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]