[NTLUG:Discuss] change terminal colors

Chris Cox cjcox at acm.org
Tue Sep 4 10:15:22 CDT 2001


If you are talking about the console (not an emulator, e.g. xterm or
something running under X, and not talking about a serial console),
then:

man restorepalette

You have to modify the default VGA palette using this command to
affect the numerical color entries.

If you are wanting to change the values inside of an emulator, then
that terminal has to have color capabilities that allows you to
modify its base color set.  Again, they are usually numbered, and
some terminals allow you to intialize the palette.. while others
won't.  This one can get complex because there are any number
of ways to support colors... but tektronix and HP format are the
most common:

man 5 terminfo

You will need to have infocmp (to view your terminfo db capabilites)
and tic (to compile new entries).  If you're serious about understanding
terminal capabilities... you may want to invest in the Termcap and
Terminfo boot from O'Reilly.

Regards,
Chris


Steve Jackson wrote:

> Does anyone know how to permanently change the terminal colors on Linux.
> I'm using SuSE 7.2.  I can echo control characters to the screen and get the
> desired color change, but it will be reset whenever any app (that writes
> color to the screen ie: vi, ls) is run.  Any suggestions?
> 
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
> 
> 





More information about the Discuss mailing list