summaryrefslogtreecommitdiff
path: root/Kernel/TTY/VirtualConsole.cpp
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-06-05 19:44:02 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-10 17:18:02 +0200
commita3c4397432c776fbf0b9e233882258980e30866e (patch)
tree440506315c461041742c661b0c605cd0aecf5165 /Kernel/TTY/VirtualConsole.cpp
parentce9460de59e31ede6793432a86fa20f83ee6c753 (diff)
downloadserenity-a3c4397432c776fbf0b9e233882258980e30866e.zip
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.
Diffstat (limited to 'Kernel/TTY/VirtualConsole.cpp')
-rw-r--r--Kernel/TTY/VirtualConsole.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp
index 281b62fe26..f8bd709cd5 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)