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:59:13 +0200 [thread overview]
Message-ID: <878wvbg22m.fsf@xs4all.nl> (raw)
In-Reply-To: <ca0f59980808050332h2bb361d0xa5e77f95724c5e12@mail.gmail.com> (bean123ch@gmail.com's message of "Tue, 5 Aug 2008 18:32:45 +0800")
Bean <bean123ch@gmail.com> writes:
> On Tue, Aug 5, 2008 at 6:15 PM, Marco Gerards <mgerards@xs4all.nl> wrote:
>> 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?
>
> Hi,
>
> This files include <grub/i386/pc/console.h>, which define
> grub_console_cur_color as global variable. Although grub-emu doesn't
> use this variable itself, but if I define it as static, it will
> generate a warning message.
Ah, ok :-)
--
Marco
next prev parent reply other threads:[~2008-08-05 10:56 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
2008-08-05 10:32 ` Bean
2008-08-05 10:59 ` Marco Gerards [this message]
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=878wvbg22m.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.