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:
parent
ce9460de59
commit
a3c4397432
Notes:
sideshowbarker
2024-07-18 12:29:38 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/a3c4397432c Pull-request: https://github.com/SerenityOS/serenity/pull/7698
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue