* fhandler_console.cc (fhandler_console::read): Allow Ctrl-Space to

emit a NUL byte.
This commit is contained in:
Corinna Vinschen 2009-06-04 09:57:34 +00:00
parent b650c255ab
commit f17f20c139
2 changed files with 9 additions and 1 deletions

View File

@ -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.

View File

@ -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))