mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 01:04:38 +03:00
8605711f4b
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.
10 lines
117 B
C++
10 lines
117 B
C++
#include <stdio.h>
|
|
|
|
int main(int, char**)
|
|
{
|
|
printf("\033[3J\033[H\033[2J");
|
|
fflush(stdout);
|
|
return 0;
|
|
}
|
|
|