Kernel: Clear TTY when setting as current

Actually this should replace from old buffer, but this works
for now.
This commit is contained in:
2023-10-13 17:20:26 +03:00
parent f7e38ccfe4
commit fc5bfa2cb3
4 changed files with 10 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ namespace Kernel
void TTY::set_as_current()
{
s_tty = this;
clear();
auto inode_or_error = DevFileSystem::get().root_inode()->find_inode("tty"sv);
if (inode_or_error.is_error())