From e27a5309194d2d614ab50157826499d1bded0a64 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 19 Sep 2025 15:32:29 +0200 Subject: [PATCH] boot: let's make the one space we output early on invisible let's place the cursor at the beginning of the line before/after, so we know it's the first char we overwrite, and we return to the front again right after. --- src/boot/boot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boot/boot.c b/src/boot/boot.c index 0c88b05a413..b168eba01c5 100644 --- a/src/boot/boot.c +++ b/src/boot/boot.c @@ -495,8 +495,9 @@ static bool menu_run( ST->ConIn->Reset(ST->ConIn, false); ST->ConOut->EnableCursor(ST->ConOut, false); - /* draw a single character to make ClearScreen work on some firmware */ - ST->ConOut->OutputString(ST->ConOut, (char16_t *) u" "); + /* Draw a single character to the beginning of a line, in order to make ClearScreen() work on certain + * broken firmware. And let's immediately move back to the beginning of the line. */ + printf("\r \r"); err = console_set_mode(config->console_mode_efivar != CONSOLE_MODE_KEEP ? config->console_mode_efivar : config->console_mode); -- 2.47.3