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:
authorCorinna Vinschen <corinna@vinschen.de>2006-07-03 19:29:10 +0400
committerCorinna Vinschen <corinna@vinschen.de>2006-07-03 19:29:10 +0400
commit6258d96af8a0181b81d5466d78fb4255f94de009 (patch)
tree9b9b6d456b8abd4653817a6dcc5f8c0c9588f768 /winsup/cygwin/include
parent61aea27d9002e491db5ea54a35cf3141843edcb9 (diff)
* fhandler.h (class dev_console): Add `metabit' indicating the
current meta key mode. * fhandler_console.cc (fhandler_console::read): Set the top bit of the character if metabit is true. * fhandler_console.cc (fhandler_console::ioctl): Implement KDGKBMETA and KDSKBMETA commands. * fhandler_tty.cc (process_ioctl): Support KDSKBMETA. (fhandler_tty_slave::ioctl): Send KDGKBMETA and KDSKBMETA to the master. * include/cygwin/kd.h: New file for the meta key mode. * include/sys/kd.h: New file.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/kd.h20
-rw-r--r--winsup/cygwin/include/sys/kd.h20
2 files changed, 40 insertions, 0 deletions
diff --git a/winsup/cygwin/include/cygwin/kd.h b/winsup/cygwin/include/cygwin/kd.h
new file mode 100644
index 000000000..b4ec7c523
--- /dev/null
+++ b/winsup/cygwin/include/cygwin/kd.h
@@ -0,0 +1,20 @@
+/* cygwin/kd.h
+
+ Copyright 2006 Red Hat Inc.
+ Written by Kazuhiro Fujieda <fujieda@jaist.ac.jp>
+
+This file is part of Cygwin.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+#ifndef _CYGWIN_KD_H_
+#define _CYGWIN_KD_H_
+
+#define KDGKBMETA 0x4b62
+#define KDSKBMETA 0x4b63
+#define K_METABIT 0x03
+#define K_ESCPREFIX 0x04
+
+#endif /* _CYGWIN_KD_H_ */
diff --git a/winsup/cygwin/include/sys/kd.h b/winsup/cygwin/include/sys/kd.h
new file mode 100644
index 000000000..5900efdd7
--- /dev/null
+++ b/winsup/cygwin/include/sys/kd.h
@@ -0,0 +1,20 @@
+/* sys/kd.h
+
+ Copyright 2006 Red Hat, Inc.
+
+ Written by Kazuhiro Fujieda <fujieda@jaist.ac.jp>
+
+This file is part of Cygwin.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+/* sys/kd.h header file for Cygwin. */
+
+#ifndef _SYS_KD_H
+#define _SYS_KD_H
+
+#include <cygwin/kd.h>
+
+#endif /* _SYS_KD_H */