Re: Setting colors on atyfb framebuffer console.

cga2000 <[email protected]> Sun, 21 Oct 2007 08:34:55 -0400
Newsgroups gmane.linux.fbdev.user
Message-ID <[email protected]>
> On Sat, Oct 20, 2007 at 12:06:31PM EDT, Antonino A. Daplas wrote:
> 
> > Each has 16 entries in decimal format standing for the red
> > (default_red), green (default_grn) and blue (default_blu) part of the
> > color. I'll be using hexadecimal from here on, since that is easier to
> > understand.
> > 
> > So the first entry (index 0) is 0x00 for red, 0x00 for green and 0x00
> > for blue. If you combine them as RGB, you get 0x000000 (black). Index 0
> > (which is black by default) is the default bacground color. Entry 8
> > (index 7), which is RGB 0xaaaaaa (light gray) is the default foreground
> > color.
> 
> Yes, why on earth did they decide on decimal entries?
> 
> > If you want to change the background color from black to blue:
> > 
> > 1. cat /sys/module/vt/parameters/default_blu > blue.txt
> > 2. change the first entry from 0 to 255,
> > 3. echo blue.txt > /sys/module/vt/parameters/default_blu
> 
> This should be:
> 
> # cp blue.txt /sys/module/vt/parameters/default_blu
> 
> .. right?
> 
> > 4. Type 'reset' to reset the terminal.
> 
> Yes, I now have a blue background.
> 
> > 6. You should not have a light gray text on a blue background.
> 
> But why three files and 16 entries in each file?
> 
> Is this documented in a man page or anything?
> 
> Thanks,
> cga

-------------------------------------------------------------------------
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/