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>2009-06-04 13:57:34 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-06-04 13:57:34 +0400
commitf17f20c13900f4575412b831061733d2ef9dc699 (patch)
tree328107fdf2529a8807d8fc69623bb70685fe5a46
parentb650c255ab437b80a0c7386694888ebbe294f534 (diff)
* fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space to
emit a NUL byte.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/fhandler_console.cc4
2 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 073c3e48e..fe3d94572 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,9 +1,13 @@
+2009-06-04 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space to
+ emit a NUL byte.
+
2009-06-04 Dave Korn <dave.korn.cygwin@gmail.com>
* thread.cc (__cygwin_lock_lock): Delete racy optimisation.
(__cygwin_lock_unlock): Likewise.
-
2009-06-03 IWAMURO Motnori <deenheart@gmail.com>
* strfuncs.cc (sys_cp_mbstowcs): Fix condition.
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index fe9307cfe..f3d26f40d 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -323,6 +323,10 @@ fhandler_console::read (void *pv, size_t& buflen)
? (dev_state->metabit ? "\377" : "\033\177") : "\177";
nread = strlen (toadd);
}
+ /* Allow Ctrl-Space to emit ^@ */
+ else if (input_rec.Event.KeyEvent.wVirtualKeyCode == VK_SPACE
+ && (control_key_state & CTRL_PRESSED))
+ toadd = "";
else if (wch == 0
/* arrow/function keys */
|| (input_rec.Event.KeyEvent.dwControlKeyState & ENHANCED_KEY))