From 7cdc9feea1d8fcd016a842155c30308e4a0cae3d Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 6 Mar 2001 12:05:45 +0000 Subject: * autoload.c (cygwin_premain0): Add missing parameter. * binmode.c (cygwin_premain0): Ditto. * textmode.c (cygwin_premain0): Ditto. Patch contributed by Jason Tiller : * auto_load.cc: Add "GetKeyboardLayout" entry in the list of Win32 User32.DLL exports to provide. * fhandler.h (class fhandler_console): Add meta_mask private member to remember which keystroke modifiers should generate META. * fhandler_console.cc (fhandler_console::read): Modify code that tests a keystroke for a META-escaped key to use the 'meta_mask' variable. (fhandler_console::fhandler_console): Add definition for variable "meta_mask" used to determine if a keystroke should be preceded by META in the client console stream. Set meta_mask based on whether or not user's keyboard language is English - non-English keyboards pass AltGr (right ) unmolested, whereas English keyboards now interpret left- and right- as META. --- winsup/cygwin/fhandler.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 3196f2114..c4f931d63 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -608,6 +608,9 @@ private: WORD default_color, underline_color, dim_color; + /* Used to determine if an input keystroke should be modified with META. */ + int meta_mask; + /* Output state */ int state_; int args_[MAXARGS]; -- cgit v1.2.3