From 47777cf5d8ee25f707869c9d91d2afcd483a7f04 Mon Sep 17 00:00:00 2001 From: Jan Ciger Date: Fri, 29 Dec 2017 13:24:05 +0100 Subject: [PATCH] Remap the DEL to BS correctly --- src/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tty.c b/src/tty.c index 9b653d2..c8ba3c7 100644 --- a/src/tty.c +++ b/src/tty.c @@ -649,8 +649,8 @@ int tty_connect(void) if (forward) { /* Map output character */ - if ((output_char == '\b') && (map_obsdel)) - output_char = 127; + if ((output_char == 127) && (map_obsdel)) + output_char = '\b'; /* Send output to tty device */ status = write(fd, &output_char, 1);