summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/console/ptyc_console_reader.c3
1 files changed, 3 insertions, 0 deletions
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;