diff options
author | Andreas Kling <kling@serenityos.org> | 2020-01-25 20:43:37 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-25 20:44:33 +0100 |
commit | edbe7d376955c0032c641beefc20c3ccbcf97857 (patch) | |
tree | ff5db5f30d6f384a436eea9277a7b8e5976dfa5d | |
parent | a3069b16fdcb8e81a9ca6e4cf0467e42c61dd3e5 (diff) | |
download | serenity-edbe7d376955c0032c641beefc20c3ccbcf97857.zip |
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.
-rw-r--r-- | Kernel/TTY/TTY.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); } } |