LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   changing console color? (https://www.linuxquestions.org/questions/linux-general-1/changing-console-color-53133/)

Wilson 04-02-2003 07:50 PM

changing console color?
 
The black backround on my linux console and the white text gets old fast is there a way to change the color of the text ro backround???

Tinkster 04-02-2003 08:39 PM

Code:

man dircolors
and
Code:

man dir_colors
might be a good starting point for
your quest, I believe :}

Cheers,
Tink

rmartine 04-02-2003 08:58 PM

What terminal are you using?? For Konsole you can change the foreground color under Konsole settings. For xterm and aterm just set the fg option to what color you want. If you want to change the color of executables and directory colors you need to do what Tinkster suggested.

Good Luck

Wilson 04-03-2003 06:43 AM

ok i feel stupid now im using redhat linux so what does that make my terminal??? if i am using konsole how do i get in the kolsole settings? God i feel stupid now lol

sidey 04-03-2003 07:45 AM

one or all of these will do

setterm [ -foreground black|red|green|yellow|blue|magenta|cyan|white|default ]
setterm [ -background black|red|green|yellow|blue|magenta|cyan|white|default ]
setterm [ -ulcolor black|grey|red|green|yellow|blue|magenta|cyan|white ]
setterm [ -ulcolor bright red|green|yellow|blue|magenta|cyan|white ]
setterm [ -hbcolor black|grey|red|green|yellow|blue|magenta|cyan|white ]
setterm [ -hbcolor bright red|green|yellow|blue|magenta|cyan|white ]
setterm [ -inversescreen [on|off] ]

:)

Wilson 04-03-2003 02:44 PM

ok that worked thanks

Wilson 04-03-2003 03:01 PM

crap i have another question, how do i make the the setterm thing work at startup???

sidey 04-04-2003 01:31 AM

heh

edit /etc/rc.d/rc3.d/S99local

and add the required setterm commands and the end of the file.

:)

Wilson 04-05-2003 07:07 PM

ok ive entered setterm -foreground blue about a million different ways into the S99local thing but nothing seems to be happening in there a special syntax i need to enter to make it work???

centr0 05-18-2003 08:39 PM

im running slack9 and i just installed blackbox. when i open xterm the defaults are black on white. it gets a little bright after a while. can anyone tell me how to change the colors permanently everytime i open xterm, or give me a link that shows how? thanks

Crashed_Again 05-18-2003 09:28 PM

You can man xterm to find all the options you want to use and then edit the xterm command in your blackbox menu configuration file so that it reflects the specific switches you want to use.

centr0 05-25-2003 07:44 PM

is there a way to include a rgb value to xterm color?
ie.:

xterm -bg black -fg rgb:109/255/109

the above doesnt work i tried it with quotes. does anyone know the correct syntax?

Crashed_Again 05-25-2003 08:34 PM

Yes there is. Check out the /usr/lib/X11/rgb.txt file. This is where all your colors are defined. If you don't see the one you want simply add it like this:

200 178 98 MyColor

I think you'd have to restart X for the changes to take effect. Then you can simply do:

xterm -fg MyColor

centr0 05-25-2003 09:06 PM

thanks crashed_again. learning more everyday. =)

Crashed_Again 05-25-2003 09:29 PM

Me too.


All times are GMT -5. The time now is 06:46 AM.