[Fwd: Re: [NTLUG:Discuss] change terminal colors]
Chris Cox
cjcox at acm.org
Wed Sep 5 10:57:39 CDT 2001
I see a lot of posts going about... it appears that my
post got ignored....
Change your TERM=linux-c on your Linux console.
Set the colors using initc
Color# Red Green Blue
$ tput initc 1 20 30 80
$ tput setaf 1 # To see your new color as the foreground color
Again, you can adjust the color palette on a VGA
console using restorepalette. You can also use the
above technique (which is probably more UNIX proper).
-------- Original Message --------
Subject: Re: [NTLUG:Discuss] change terminal colors
Date: Tue, 04 Sep 2001 10:15:22 -0500
From: Chris Cox <cjcox at acm.org>
Organization: Sterling Commerce
To: discuss at ntlug.org
References: <000401c13545$bcba5c30$1620a8c0 at jaxsn>
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