[PATCH] Clear screen on start

8 views
Skip to first unread message

Jan Kiszka

unread,
Jan 16, 2021, 3:51:53 AM1/16/21
to efibootguard-dev
From: Jan Kiszka <jan.k...@siemens.com>

Remove any traces of splash screens before writing messages.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
main.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/main.c b/main.c
index ded6129..2bbd2ad 100644
--- a/main.c
+++ b/main.c
@@ -112,6 +112,7 @@ EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
this_image = image_handle;
InitializeLib(this_image, system_table);

+ (VOID)uefi_call_wrapper(ST->ConOut->ClearScreen, 2, ST->ConOut);
PrintC(EFI_CYAN, L"\nEFI Boot Guard %s\n", L"" EFIBOOTGUARD_VERSION);

status =
--
2.26.2

Christian Storm

unread,
Jan 18, 2021, 5:55:21 AM1/18/21
to efibootguard-dev
Hi Jan,
Very welcomed, how about also clearing screen on callee execution? Then,
we may also add Pause() calls to WARNING and ERROR so that they can
actually be recognized and don't just rush through?


Kind regards,
Christian

--
Dr. Christian Storm
Siemens AG, Technology, T RDA IOT SES-DE
Otto-Hahn-Ring 6, 81739 München, Germany
Reply all
Reply to author
Forward
0 new messages