ilivit / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

X-style handling of Ctrl+AltGr+symbol combination #131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In X, entering symbol-based control character such as ^@ or ^] is
straightforward: hold down control while pressing whatever key or key
combination generates the base character.

For example AltGr+9 on a German keyboard sends ']', hence Ctrl+AltGr+9
sends '^]'.

Unfortunately that can't easily be done on Windows, because the Win32 API
represents AltGr as Ctrl+RightAlt instead of a key in its own right. Hence,
Ctrl+AltGr can't be distinguished from plain AltGr. Well, not without some
clever hackery, such as is used in Xwin to get X-style AltGr behaviour anyway.

This hack notices when Ctrl and RightAlt arrive at the same time, and
treats that case specially. Trouble is, that's not entirely foolproof, with
reports of the Ctrl key occasionally getting stuck, virtually speaking.
Mintty, however, doesn't actually need as general a solution as Xwin's,
which might mean there is more reliable way to deal with this issue.

Original issue reported on code.google.com by andy.koppe on 10 Sep 2009 at 8:56

GoogleCodeExporter commented 9 years ago
Just for completeness: Mintty already does support the control characters in 
question
anyway, Ctrl+9 rather than Ctrl+AltGr+9 will yield ^] on a German keyboard.

The seven "symbol-based" control characters (as opposed to the letter-based ^A 
to ^Z)
can also be sent using these keys or key combinations:

^@  Ctrl+Space
^[  Escape (also Alt, if "Lone Alt Sends ESC" is on)
^\  Break (i.e., Ctrl+Pause)
^]  Pause
^^  Ctrl+Enter
^_  Ctrl+Backspace
^?  Backspace

(The last two assume that the backspace keycode is set to ^?, which is the 
default
from 0.5.)

Original comment by andy.koppe on 10 Sep 2009 at 9:03

GoogleCodeExporter commented 9 years ago
Implemented in r695 on trunk.

Original comment by andy.koppe on 10 Jan 2010 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by andy.koppe on 30 Jan 2010 at 10:47

GoogleCodeExporter commented 9 years ago

Original comment by andy.koppe on 13 Feb 2010 at 4:24