From 083e87e91d9b0456ac44c6450a3f8eeb9c9f10df Mon Sep 17 00:00:00 2001 From: midipix Date: Aug 18 2016 15:18:26 +0000 Subject: console: ptyc_console_reader(): send backspace (0x08) as delete (0x7f). --- 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;