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
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/cygwin/fhandler_console.cc
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/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc2
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)