Shell: make clear use \e[2J instead of \e[J

This makes kernel to actually clear the full screen. If framebuffer
did not fit font exactly last row would be left partially uncleared
This commit is contained in:
Bananymous 2023-11-28 23:55:37 +02:00
parent 42a1d26d5b
commit 056586486d
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ BAN::Optional<int> execute_builtin(BAN::Vector<BAN::String>& args, int fd_in, in
if (args.front() == "clear"sv)
{
fprintf(fout, "\e[H\e[J");
fprintf(fout, "\e[H\e[2J");
fflush(fout);
}
else if (args.front() == "exit"sv)