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:
parent
42a1d26d5b
commit
056586486d
|
@ -290,7 +290,7 @@ BAN::Optional<int> execute_builtin(BAN::Vector<BAN::String>& args, int fd_in, in
|
||||||
|
|
||||||
if (args.front() == "clear"sv)
|
if (args.front() == "clear"sv)
|
||||||
{
|
{
|
||||||
fprintf(fout, "\e[H\e[J");
|
fprintf(fout, "\e[H\e[2J");
|
||||||
fflush(fout);
|
fflush(fout);
|
||||||
}
|
}
|
||||||
else if (args.front() == "exit"sv)
|
else if (args.front() == "exit"sv)
|
||||||
|
|
Loading…
Reference in New Issue