diff options
author | Christopher Faylor <me@cgf.cx> | 2000-04-24 21:41:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-04-24 21:41:11 +0000 |
commit | 698c62742420a7c1cfd61cd92f3ade4569d652e8 (patch) | |
tree | 4a689ce79b986d6ffef38d9d1aff5b0e9a89a704 /winsup/cygwin/fhandler_console.cc | |
parent | 046069e4491987af37326d4563e55fcb0698b88c (diff) | |
download | cygnal-698c62742420a7c1cfd61cd92f3ade4569d652e8.tar.gz cygnal-698c62742420a7c1cfd61cd92f3ade4569d652e8.tar.bz2 cygnal-698c62742420a7c1cfd61cd92f3ade4569d652e8.zip |
* fhandler_console.cc (fhandler_console::read): Detect extended keycode
information for Windows 9x so that function keys will work correctly.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 47c5ba38d..4b87caaa0 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -179,7 +179,7 @@ fhandler_console::read (void *pv, size_t buflen) !input_rec.Event.KeyEvent.bKeyDown) continue; - if (ich == 0) /* arrow/function keys */ + if (ich == 0 || (ich & 0xff) == 0xe0) /* arrow/function keys */ { toadd = get_nonascii_key (input_rec); if (!toadd) |