summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-08-15 08:08:01 -0400
committermidipix <writeonce@midipix.org>2016-08-18 11:18:26 -0400
commit083e87e91d9b0456ac44c6450a3f8eeb9c9f10df (patch)
treea4cc8b4f79c6fbdb928cbedbee4a6110ce9da4d5
parent79c2fe897d88310734d46cfa6692fda3727e76d5 (diff)
downloadptycon-083e87e91d9b0456ac44c6450a3f8eeb9c9f10df.tar.bz2
ptycon-083e87e91d9b0456ac44c6450a3f8eeb9c9f10df.tar.xz
console: ptyc_console_reader(): send backspace (0x08) as delete (0x7f).
-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;