From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IDnoa-0008Eq-V4 for mharc-grub-devel@gnu.org; Wed, 25 Jul 2007 16:50:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDnoZ-0008EG-BY for grub-devel@gnu.org; Wed, 25 Jul 2007 16:50:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDnoX-0008Bs-O1 for grub-devel@gnu.org; Wed, 25 Jul 2007 16:50:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDnoX-0008BM-Fn for grub-devel@gnu.org; Wed, 25 Jul 2007 16:50:33 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IDnoX-0006Zb-3B for grub-devel@gnu.org; Wed, 25 Jul 2007 16:50:33 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IDnoV-0003Bb-Nm for grub-devel@gnu.org; Wed, 25 Jul 2007 22:50:32 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1IDnrL-0000dt-S8 for grub-devel@gnu.org; Wed, 25 Jul 2007 22:53:27 +0200 Date: Wed, 25 Jul 2007 22:53:27 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20070725205327.GA2153@aragorn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. Subject: [RFC] color command 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: Wed, 25 Jul 2007 20:50:35 -0000 Hi, I'd like to discuss the possibility of providing functionality equivalent to the "color" command in GRUB Legacy. One of the downsides of how color worked in GRUB Legacy is that internally colors were handled by GRUB directly as VGA codes. Since this isn't portable, I suggest that we avoid it completely instead of just mapping them for platforms using non-VGA tables (I've seen that ofconsole is using RGB structs). The solution I propose would be to have a "color" variable (and another one for highlight color?) with human readable names based on the list in GRUB Legacy, and let each terminal parse that and pull their colors during initialisation (this has the downside that one would have to reinitialise terminal after changing color, but this seems to be akin to the gfxterm / gfxmode situation and I think is reasonable). Any comments? Should I go on implementing that? -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.