LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-02-2003, 07:50 PM   #1
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Rep: Reputation: 15
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???
 
Old 04-02-2003, 08:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Code:
man dircolors
and
Code:
man dir_colors
might be a good starting point for
your quest, I believe :}

Cheers,
Tink
 
Old 04-02-2003, 08:58 PM   #3
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
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
 
Old 04-03-2003, 06:43 AM   #4
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 04-03-2003, 07:45 AM   #5
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
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] ]

 
Old 04-03-2003, 02:44 PM   #6
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
ok that worked thanks
 
Old 04-03-2003, 03:01 PM   #7
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
crap i have another question, how do i make the the setterm thing work at startup???
 
Old 04-04-2003, 01:31 AM   #8
sidey
Member
 
Registered: Mar 2003
Location: Essex UK
Distribution: rh 8.0 bsd 5.0 slack 9.0 rc2 crux
Posts: 147

Rep: Reputation: 15
heh

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

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

 
Old 04-05-2003, 07:07 PM   #9
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
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???
 
Old 05-18-2003, 08:39 PM   #10
centr0
Member
 
Registered: Feb 2003
Location: Earth
Distribution: Slackware 9.1
Posts: 134

Rep: Reputation: 15
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
 
Old 05-18-2003, 09:28 PM   #11
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
Old 05-25-2003, 07:44 PM   #12
centr0
Member
 
Registered: Feb 2003
Location: Earth
Distribution: Slackware 9.1
Posts: 134

Rep: Reputation: 15
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?
 
Old 05-25-2003, 08:34 PM   #13
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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
 
Old 05-25-2003, 09:06 PM   #14
centr0
Member
 
Registered: Feb 2003
Location: Earth
Distribution: Slackware 9.1
Posts: 134

Rep: Reputation: 15
thanks crashed_again. learning more everyday. =)
 
Old 05-25-2003, 09:29 PM   #15
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Me too.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
console/cli in color vaderj Slackware 3 06-28-2005 08:27 AM
Console Color Changes? darioush Red Hat 4 09-16-2003 01:38 AM
default console color boob Linux - Software 1 09-07-2003 12:19 AM
Color Console JustinH Programming 6 04-30-2003 03:02 PM
color in console schatoor Linux - General 2 12-13-2002 08:32 AM


All times are GMT -5. The time now is 01:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration