Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-04-25 01:41:11 +0400
committerChristopher Faylor <me@cgf.cx>2000-04-25 01:41:11 +0400
commit698c62742420a7c1cfd61cd92f3ade4569d652e8 (patch)
tree4a689ce79b986d6ffef38d9d1aff5b0e9a89a704 /winsup
parent046069e4491987af37326d4563e55fcb0698b88c (diff)
* fhandler_console.cc (fhandler_console::read): Detect extended keycode
information for Windows 9x so that function keys will work correctly.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_console.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index edb3796b5..68f7dea76 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+Mon Apr 24 17:38:25 2000 Thorsten Otto <cgf@cygnus.com>
+
+ * fhandler_console.cc (fhandler_console::read): Detect extended keycode
+ information for Windows 9x so that function keys will work correctly.
+
2000-04-24 Vadim Egorov <egorovv@mailandnews.com>
* net.cc (cygwin_inet_network): new function.
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)