* 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

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