[NTLUG:Discuss] console mode colors
Chris Cox
cjcox at acm.org
Mon Sep 13 11:39:18 CDT 2004
Terry Henderson wrote:
> How does one change console mode colors, or turn off colors?
>
Apart from using terminfo or app settings, if we're talking
about the SVGA console (a vc), you can use restorepalette from
the svgalib tools to change the colors (RGB) used by default. This
is VERY linux svga console specific.
For example (standard palette)... put this to a file:
0 0 0 0 # black
1 0 0 42 # blue
2 0 42 0 # green
3 0 42 42 # cyan
4 42 0 0 # red
5 42 0 42 # magenta
6 42 42 42 # white
7 42 21 0 # brown
8 21 21 21 # bright black
9 21 21 63 # bright blue
10 21 63 21 # bright green
11 21 63 63 # bright cyan
12 63 21 21 # bright red
13 63 21 63 # bright magenta
14 63 63 21 # bright brown
15 63 63 63 # bright white
Let's say that blue is too dark (usually is).
Let's lighten it up. Change the blue entry
to 1 30 30 42 and then use restorepalette <fileofcolors>
to change it. Might also want to change
bright blue to 30 30 63 as well. Changing from
the vc to X11 and back might reset the palette.
So this is more useful for when just using
the console.
Note: Newer versions of SUSE don't ship with
svgalib rpm's. I just use the Connectiva ones.
More information about the Discuss
mailing list