Kernel: TTY now actually flushes on ^D

This commit is contained in:
Bananymous 2023-06-05 20:21:46 +03:00
parent 649f08ec78
commit 668517a723
1 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,7 @@ namespace Kernel
{
// EOF from ^D
if (ansi[0] == '\x04')
ansi = nullptr;
goto flush;
else if (ansi[0] == '\b')
{
ansi = nullptr;
@ -222,6 +222,7 @@ namespace Kernel
}
}
flush:
if (eof || !m_termios.canonical)
{
m_output.flush = true;