[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix color problem the grub-emu
From: |
Bean |
Subject: |
Re: [PATCH] Fix color problem the grub-emu |
Date: |
Tue, 5 Aug 2008 16:35:39 +0800 |
On Tue, Aug 5, 2008 at 3:54 PM, Vesa Jääskeläinen <address@hidden> wrote:
> Bean wrote:
>>
>> Hi,
>>
>> 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.
>
>> +
>> +static grub_uint8_t color_map[NUM_COLORS] =
>> +{
>> + COLOR_BLACK,
>> + COLOR_BLUE,
>> + COLOR_GREEN,
>> + COLOR_CYAN,
>> + COLOR_RED,
>> + COLOR_MAGENTA,
>> + COLOR_YELLOW,
>> + COLOR_WHITE
>> +};
>> +
>
> Doesn't also ncurses have 16 different colors for foreground and 8 for
> background? This is at least quite common for terminals.
>
> On some terminals there is one bit controlling background highlight colors
> or text blinking.
Hi,
I check my system, it only has 8 foreground and 8 background, the
highlight color can be enabled with the A_BOLD flag.
--
Bean