From: Lennart Poettering Date: Fri, 19 Sep 2025 13:32:29 +0000 (+0200) Subject: boot: let's make the one space we output early on invisible X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F39026%2Fhead;p=thirdparty%2Fsystemd.git 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. --- 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);