mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
Make /bin/clear work again.
After I made stdio buffered, we were dropping anything unflushed on exit. Since /bin/clear just prints out some escape sequences without a newline, the entire buffer was being discarded. Also add VirtualConsole::clear() that handles clearing of background VC's.
This commit is contained in:
parent
3e3de67f02
commit
8605711f4b
4 changed files with 19 additions and 3 deletions
|
@ -43,6 +43,8 @@ private:
|
|||
void escape$s(const Vector<unsigned>&);
|
||||
void escape$u(const Vector<unsigned>&);
|
||||
|
||||
void clear();
|
||||
|
||||
const byte m_rows { 25 };
|
||||
const byte m_columns { 80 };
|
||||
byte m_cursor_row { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue