Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KQI1C-0000e0-Na for mharc-grub-devel@gnu.org; Tue, 05 Aug 2008 04:35:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQI1B-0000d5-0I for grub-devel@gnu.org; Tue, 05 Aug 2008 04:35:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQI18-0000cS-D2 for grub-devel@gnu.org; Tue, 05 Aug 2008 04:35:43 -0400 Received: from [199.232.76.173] (port=40926 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQI18-0000cP-7P for grub-devel@gnu.org; Tue, 05 Aug 2008 04:35:42 -0400 Received: from ti-out-0910.google.com ([209.85.142.184]:42167) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQI18-0003Y6-93 for grub-devel@gnu.org; Tue, 05 Aug 2008 04:35:42 -0400 Received: by ti-out-0910.google.com with SMTP id u5so646916tia.10 for ; Tue, 05 Aug 2008 01:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=QTIkjFgS6UnbIqwdN7Wyo8J6+hZ7q5WER2lk2/vltwQ=; b=E8cGI0YzK8btA2JHIEbzNFNTtk93VebI3rF/dx9vhWS1UQ7wjft3vH/L2F+mXJWOjb mCWZsIa1o2qEEhRxWSWwrEz81v//2deORiL6R2o+iKGk2+Z4bu+mszKo/MPYalXibyuE jBUJVrQ1MimC3NkbFiDAzCzjSttILLL4K/K1U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=LXcKS3eSz0WA3kdoe1z7fTAklNY07S9xzYFSYvDbZnm+hSNjOzS4hniCO7WS28IN/L n9vprI10GUXIXs1pBzmyWwz348LGEbAbtWpzYonYC+NuPckHBcqXbUBWfSi/0sprc3h4 1d+wlo19cs62h2qKttOp1RkIC7KbWrP4ge53w= Received: by 10.110.95.15 with SMTP id s15mr639993tib.40.1217925339997; Tue, 05 Aug 2008 01:35:39 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Tue, 5 Aug 2008 01:35:39 -0700 (PDT) Message-ID: Date: Tue, 5 Aug 2008 16:35:39 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <4898073C.6020407@nic.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4898073C.6020407@nic.fi> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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 08:35:45 -0000 On Tue, Aug 5, 2008 at 3:54 PM, Vesa J=E4=E4skel=E4inen wrot= e: > 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] =3D >> +{ >> + 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 color= s > 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. --=20 Bean