Re: Setting colors on atyfb framebuffer console.

"Antonino A. Daplas" <[email protected]> Mon, 22 Oct 2007 22:20:35 +0800
Newsgroups gmane.linux.fbdev.user
Message-ID <1193062835.19876.19.camel@daplas>
On Sun, 2007-10-21 at 20:30 -0400, cga2000 wrote:
> On Sun, Oct 21, 2007 at 07:31:31PM EDT, Antonino A. Daplas wrote:
> > On Sun, 2007-10-21 at 08:34 -0400, cga2000 wrote:
> > > > On Sat, Oct 20, 2007 at 12:06:31PM EDT, Antonino A. Daplas wrote:
> > > > 
> > 
> > The 16 entries is standard since the linux console is limited to 16
> > colors. As to why separate each component (R, G, B) into 3 files, it's
> > because that is the simplest way, otherwise, we have to add additional
> > code to separate each color into its components before feeding them to
> > the console layer.
> 
> OK.
> 
> So we have three files for our three fundamental colors.
> 
> You have probably realized I'm a bit thick by now .. but why 16 entries
> to each file - iow, I would have expected one for the background, one
> for the foreground .. etc.
> 
> I'm still a bit lost.

Do you mean why not one file per attribute? ... ie, default_foreground,
default_background, default_underline, etc? It is simply more
complicated since we have to take into consideration how a console
driver represents an attribute, ie, one driver may use blue for
underline, another may use green, and in another ignored.

Color though is treated the same whatever driver you use.

Tony



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/