From 056586486d1db52525190e570d081b658ee8fecc Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 28 Nov 2023 23:55:37 +0200 Subject: [PATCH] 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 --- userspace/Shell/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/Shell/main.cpp b/userspace/Shell/main.cpp index 4dd8b411..e88df1bd 100644 --- a/userspace/Shell/main.cpp +++ b/userspace/Shell/main.cpp @@ -290,7 +290,7 @@ BAN::Optional execute_builtin(BAN::Vector& 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)