mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
TTY: Properly implement echo in VirtualConsole.
VirtualConsole::echo now actually echoes characters instead of doing nothing.
This commit is contained in:
committed by
Andreas Kling
parent
ed45f67c00
commit
378480e8e4
@@ -545,6 +545,13 @@ StringView VirtualConsole::tty_name() const
|
||||
return m_tty_name;
|
||||
}
|
||||
|
||||
void VirtualConsole::echo(u8 ch)
|
||||
{
|
||||
if (should_echo_input()) {
|
||||
on_tty_write(&ch, 1);
|
||||
}
|
||||
}
|
||||
|
||||
void VirtualConsole::set_vga_start_row(u16 row)
|
||||
{
|
||||
m_vga_start_row = row;
|
||||
|
||||
Reference in New Issue
Block a user