From edbe7d376955c0032c641beefc20c3ccbcf97857 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 25 Jan 2020 20:43:37 +0100 Subject: [PATCH] Kernel: Unbreak canonical mode TTY erase after LibVT changes Now that LibVT's backspace character (8) is non-destructive, the kernel line editing code has to take care of erasing manually. --- Kernel/TTY/TTY.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kernel/TTY/TTY.cpp b/Kernel/TTY/TTY.cpp index 3147e84919..529d89023c 100644 --- a/Kernel/TTY/TTY.cpp +++ b/Kernel/TTY/TTY.cpp @@ -194,7 +194,9 @@ void TTY::do_backspace() { if (can_do_backspace()) { m_input_buffer.dequeue_end(); - echo(m_termios.c_cc[VERASE]); + echo(8); + echo(' '); + echo(8); } }