* fhandler_console.cc (fhandler_console::read): Convert Alt-Backspace
to \033\177 or to \377 dependent on the setting of dev_state->metabit.
This commit is contained in:
parent
8992a8e070
commit
c48a1e46bf
@ -1,3 +1,8 @@
|
||||
2009-06-03 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_console.cc (fhandler_console::read): Convert Alt-Backspace
|
||||
to \033\177 or to \377 dependent on the setting of dev_state->metabit.
|
||||
|
||||
2009-06-02 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* path.cc (path_conv::check): Don't call set_exec for files on "noacl"
|
||||
|
@ -318,8 +318,11 @@ fhandler_console::read (void *pv, size_t& buflen)
|
||||
/* Adopt the linux standard of translating the backspace key to DEL
|
||||
except when ALT is pressed. */
|
||||
if (input_rec.Event.KeyEvent.wVirtualScanCode == 14)
|
||||
toadd = (control_key_state & (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED))
|
||||
? "" : "\177";
|
||||
{
|
||||
toadd = (control_key_state & (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED))
|
||||
? (dev_state->metabit ? "\377" : "\033\177") : "\177";
|
||||
nread = strlen (toadd);
|
||||
}
|
||||
else if (wch == 0
|
||||
/* arrow/function keys */
|
||||
|| (input_rec.Event.KeyEvent.dwControlKeyState & ENHANCED_KEY))
|
||||
|
Loading…
x
Reference in New Issue
Block a user