From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KQHNS-0005k5-D2 for mharc-grub-devel@gnu.org; Tue, 05 Aug 2008 03:54:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQHNQ-0005fL-37 for grub-devel@gnu.org; Tue, 05 Aug 2008 03:54:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQHNP-0005cz-3K for grub-devel@gnu.org; Tue, 05 Aug 2008 03:54:39 -0400 Received: from [199.232.76.173] (port=44238 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQHNO-0005cd-UW for grub-devel@gnu.org; Tue, 05 Aug 2008 03:54:38 -0400 Received: from mx20.gnu.org ([199.232.41.8]:9781) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KQHNO-0005Fl-GY for grub-devel@gnu.org; Tue, 05 Aug 2008 03:54:38 -0400 Received: from mta-out.inet.fi ([195.156.147.13] helo=jenni2.inet.fi) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQHNN-0003hn-1M for grub-devel@gnu.org; Tue, 05 Aug 2008 03:54:37 -0400 Received: from [127.0.0.1] (88.193.32.97) by jenni2.inet.fi (8.5.014) id 489066C50035D5BA for grub-devel@gnu.org; Tue, 5 Aug 2008 10:54:36 +0300 Message-ID: <4898073C.6020407@nic.fi> Date: Tue, 05 Aug 2008 10:54:36 +0300 From: =?ISO-8859-1?Q?Vesa_J=E4=E4skel=E4inen?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: The development of GRUB 2 References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [PATCH] Fix color problem the grub-emu X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 07:54:40 -0000 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.