All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Fix color problem the grub-emu
Date: Tue, 05 Aug 2008 12:15:00 +0200	[thread overview]
Message-ID: <87od47hior.fsf@xs4all.nl> (raw)
In-Reply-To: <ca0f59980808012133w43d18603t905e91f25ee64ccf@mail.gmail.com> (bean123ch@gmail.com's message of "Sat, 2 Aug 2008 12:33:39 +0800")

Hi,

Bean <bean123ch@gmail.com> writes:

> Currently, the color handling in grub-emu is broken, sometimes you see
> nothing on screen. This patch fix it, now variable menu_color_normal
> and menu_color_highlight works properly in grub-emu.
>
> 2008-08-02  Bean  <bean123ch@gmail.com>
>
> 	* util/console.c (grub_console_cur_color): New variable.
> 	(grub_console_standard_color): Likewise.
> 	(grub_console_normal_color): Likewise.
> 	(grub_console_highlight_color): Likewise.
> 	(color_map): Likewise.
> 	(use_color): Likewise.
> 	(NUM_COLORS): New macro.
> 	(grub_ncurses_setcolorstate): Handle color properly.
> 	(grub_ncurses_setcolor): Don't change color here, just remember the
> 	settings, color will be set in grub_ncurses_setcolorstate.
> 	(grub_ncurses_getcolor): New function.
> 	(grub_ncurses_init): Initialize color pairs.
> 	(grub_term grub_ncurses_term): New member grub_ncurses_getcolor.

This should be:

 	(grub_ncurses_term): New member grub_ncurses_getcolor.

> -- 
> Bean
>
> diff --git a/util/console.c b/util/console.c
> index 8c9401c..53fc5d0 100644
> --- a/util/console.c
> +++ b/util/console.c
> @@ -41,6 +41,28 @@
>  
>  static int grub_console_attr = A_NORMAL;
>  
> +grub_uint8_t grub_console_cur_color = 7;

Any reason why this is not static?



Otherwise, like usual, your patch looks fine at first sight.  If it
works and no one else has objections just commit it after making these
two changes :-)

--
Marco




  parent reply	other threads:[~2008-08-05 10:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-02  4:33 [PATCH] Fix color problem the grub-emu Bean
2008-08-05  7:54 ` Vesa Jääskeläinen
2008-08-05  8:35   ` Bean
2008-08-05 10:15 ` Marco Gerards [this message]
2008-08-05 10:32   ` Bean
2008-08-05 10:59     ` Marco Gerards
2008-08-05 14:19       ` Bean

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=87od47hior.fsf@xs4all.nl \
    --to=mgerards@xs4all.nl \
    --cc=grub-devel@gnu.org \
    /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.