浏览代码

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.
Andreas Kling 5 年之前
父节点
当前提交
edbe7d3769
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Kernel/TTY/TTY.cpp

+ 3 - 1
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);
     }
 }