mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
efi_loader: Set default console colors on efi_cout_clear_screen if needed
Ensures a consistent background color of the whole screen for succeeding outputs as both demanded by the spec and implemented in EDK2 as well. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
5ef229a007
commit
de94f0f320
1 changed files with 6 additions and 0 deletions
|
@ -489,6 +489,12 @@ static efi_status_t EFIAPI efi_cout_clear_screen(
|
|||
{
|
||||
EFI_ENTRY("%p", this);
|
||||
|
||||
/* Set default colors if not done yet */
|
||||
if (efi_con_mode.attribute == 0) {
|
||||
efi_con_mode.attribute = 0x07;
|
||||
printf(ESC "[0;37;40m");
|
||||
}
|
||||
|
||||
efi_clear_screen();
|
||||
|
||||
return EFI_EXIT(EFI_SUCCESS);
|
||||
|
|
Loading…
Reference in a new issue