From: Jan Kiszka <jan.kiszka@siemens.com>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: [PATCH v3 2/3] efi_loader: Set default console colors on efi_cout_clear_screen if needed
Date: Mon, 7 Nov 2022 18:00:19 +0100 [thread overview]
Message-ID: <db267423-1062-eab1-e2a8-ba1807cf0ba8@siemens.com> (raw)
In-Reply-To: <4b7a28d04119ae529a2dc1a16dec50fb39c74f17.1667549199.git.jan.kiszka@siemens.com>
On 04.11.22 09:06, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> 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>
> ---
> lib/efi_loader/efi_console.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
> index 6ce0fcc168d..4228a509caf 100644
> --- a/lib/efi_loader/efi_console.c
> +++ b/lib/efi_loader/efi_console.c
> @@ -495,6 +495,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);
And what about this visual fix? It does not depend on patch 1.
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
next prev parent reply other threads:[~2022-11-07 17:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-04 8:06 [PATCH v3 0/3] efi_loader: console and network dependency improvements Jan Kiszka
2022-11-04 8:06 ` [PATCH v3 1/3] efi_loader: Avoid overwriting previous outputs on console screen clearing Jan Kiszka
2022-11-04 19:08 ` Simon Glass
2022-11-07 13:50 ` Jan Kiszka
2022-11-07 15:28 ` Simon Glass
2022-11-07 16:13 ` Heinrich Schuchardt
2022-11-07 17:32 ` Simon Glass
2022-11-07 17:55 ` Heinrich Schuchardt
2022-11-07 16:29 ` Heinrich Schuchardt
2022-11-07 16:41 ` Jan Kiszka
2022-11-07 17:18 ` Heinrich Schuchardt
2022-11-07 18:27 ` Jan Kiszka
2022-11-04 8:06 ` [PATCH v3 2/3] efi_loader: Set default console colors on efi_cout_clear_screen if needed Jan Kiszka
2022-11-07 17:00 ` Jan Kiszka [this message]
2022-11-07 17:06 ` Heinrich Schuchardt
2022-11-07 18:05 ` Jan Kiszka
2022-11-04 8:06 ` [PATCH v3 3/3] efi_loader: Let networking support depend on NETDEVICES Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=db267423-1062-eab1-e2a8-ba1807cf0ba8@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.