From a3c4397432c776fbf0b9e233882258980e30866e Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sat, 5 Jun 2021 19:44:02 +0200 Subject: [PATCH] Kernel: Re-render console after echoing characters If we do not flush the dirty lines, characters typed in canonical mode only appear after the virtual console has been switched away from, or the application has been killed. Instead, we now immediately perform the flush. --- Kernel/TTY/VirtualConsole.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp index 281b62fe26c..f8bd709cd50 100644 --- a/Kernel/TTY/VirtualConsole.cpp +++ b/Kernel/TTY/VirtualConsole.cpp @@ -377,6 +377,8 @@ String VirtualConsole::device_name() const void VirtualConsole::echo(u8 ch) { m_console_impl.on_input(ch); + if (m_active) + flush_dirty_lines(); } VirtualConsole::Cell& VirtualConsole::cell_at(size_t x, size_t y)