LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2003, 06:25 AM   #1
hrc
Member
 
Registered: Jun 2003
Location: Ohio
Posts: 54

Rep: Reputation: 15
text color in the CLI


how do you set the text color (actually turn it off) for different users, or globally?
 
Old 06-25-2003, 06:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what do you mean by text colour? each application can sontrol it's own output if it wishes to, e.g. running "ls --color"
 
Old 06-25-2003, 06:41 AM   #3
hrc
Member
 
Registered: Jun 2003
Location: Ohio
Posts: 54

Original Poster
Rep: Reputation: 15
ok - if you are in the CLI and execute a "ls -la". Depending on what file type the file is, it appears in different colors. How can/do you turn off the feature? Does that make sense?
 
Old 06-25-2003, 07:46 AM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well i know on my rh8 box, i just use the basic terminal located at
hat --> system tools --> terminal and if you go to the profile, there is a colors tab which there you can do what you wish...
but my question is, why would you want to turn that off....cause in my opinion that is a pretty neat feature...
when you do an ls.... whatever is blue is a folder what is white is just a regular file ( text, log, non-executable) whatevers green is some kind of file you can execute....i think thats alot better than having everything written in all black....
 
Old 06-25-2003, 07:52 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well then if you run "alias" that will list the aliased commands and ls will probably be aliased to "ls --color" or something, which is normally set in /etc/profile /etc/profile.d/aliases or similar.
 
Old 06-25-2003, 07:55 AM   #6
hrc
Member
 
Registered: Jun 2003
Location: Ohio
Posts: 54

Original Poster
Rep: Reputation: 15
thanks guys - I guess that what I really would like to do is tweak some of the color selections - I can't remember what the specific file type is, but it was a white font with yellow hightlight - that is what I am mainly trying to do - thanks again - (more suggestion are welcomed!!)
 
Old 06-25-2003, 08:00 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
normally in /etc/profile.d/lscolors i think, have a poke around. this is of course ls specific
 
Old 06-25-2003, 09:35 AM   #8
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
the colors are based on the LS_COLORS environment variable. the only way I've interacted with the colors is through the dircolors tool by specifying a file (e.g. eval dircolors -b ~/.dircolorsrc). The output from dircolors is the set of shell commands that will set LS_COLORS (and varies).
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How change text color using linux in text mode only runlevel 3? Xavius Linux - General 7 05-07-2009 02:19 AM
truncate a text file in CLI? hottdogg Linux - General 2 09-06-2005 09:32 PM
console/cli in color vaderj Slackware 3 06-28-2005 08:27 AM
CLI based Text manipulation selfsck Linux - General 1 07-15-2004 07:11 PM
Chaning color of text using C in CLI mode WindowsBurner Programming 7 11-29-2003 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration