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.
This commit is contained in:
Daniel Bertalan 2021-06-05 19:44:02 +02:00 committed by Andreas Kling
parent ce9460de59
commit a3c4397432
Notes: sideshowbarker 2024-07-18 12:29:38 +09:00

View File

@ -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)