forked from Bananymous/banan-os
Kernel: TTY now actually flushes on ^D
This commit is contained in:
@@ -155,7 +155,7 @@ namespace Kernel
|
|||||||
{
|
{
|
||||||
// EOF from ^D
|
// EOF from ^D
|
||||||
if (ansi[0] == '\x04')
|
if (ansi[0] == '\x04')
|
||||||
ansi = nullptr;
|
goto flush;
|
||||||
else if (ansi[0] == '\b')
|
else if (ansi[0] == '\b')
|
||||||
{
|
{
|
||||||
ansi = nullptr;
|
ansi = nullptr;
|
||||||
@@ -222,6 +222,7 @@ namespace Kernel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
flush:
|
||||||
if (eof || !m_termios.canonical)
|
if (eof || !m_termios.canonical)
|
||||||
{
|
{
|
||||||
m_output.flush = true;
|
m_output.flush = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user