From 083e87e91d9b0456ac44c6450a3f8eeb9c9f10df Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 15 Aug 2016 08:08:01 -0400 Subject: console: ptyc_console_reader(): send backspace (0x08) as delete (0x7f). --- src/console/ptyc_console_reader.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/console/ptyc_console_reader.c b/src/console/ptyc_console_reader.c index 803b9c3..76b8ce6 100644 --- a/src/console/ptyc_console_reader.c +++ b/src/console/ptyc_console_reader.c @@ -90,6 +90,9 @@ static size_t ptyc_translate_keyboard_event( return ptyc_translate_virtual_keycode( rec,ch); + if (recwch == 0x08) + recwch = 0x7f; + if (*wch) { if ((recwch < 0xDC00) || (recwch >= 0xE000)) { *wch = 0; -- cgit v1.2.3