mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user