LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to suppress colors (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-suppress-colors-21019/)

frankie_g 05-15-2002 06:59 AM

how to suppress colors
 
I'd like to remove all colors, the default is a lime green when I run ll. I'm using the KDE gui. What file do I need to tweak to suppress colors?
TIA
F.

acid_kewpie 05-15-2002 07:04 AM

What colours??????? come on man, give us some kind of chance to help! erm... fiddle with the controls on your monitor? buy a black and white monitor...

frankie_g 05-15-2002 07:49 AM

When I run a listing of dirs, the listing comes out lime green, how to I reset this color to black. I don't need a color coded scheme to navigate thru my system, and yikes! lime green as a default color!!! At the console, I can run setterm -background black -foreground white but it is not set permanently and when I run startx those colors are not ported to the kde gui. Am I suppose to tweak a file under /usr/share/terminfo? Any clues!

acid_kewpie 05-15-2002 08:14 AM

ahh ls. right... helpful if you say that to start with... green is always used, and it's handy having the colour coding for files. but run "alias" and you should see an entry for ls = ls -F --color=auto or something, which is usually defined in the /etc/profile.d/ls_color.sh or something like that. removing that alias, or editing it to remove the --color option will stop it being in color by default. you can always edit the /etc/DIR_COLORS file to make single color changes

frankie_g 05-15-2002 09:02 AM

OK. One more question. To override system settings, I've copied the DIR_COLORS to the user's home dir /.dir_colors and set COLOR none, so to shutoff colorization. I ensured ownership of .dir_colors is correct. How come I'm still seeing colors?

acid_kewpie 05-15-2002 09:07 AM

maybe that alias is still there, i think there are defaults it will still use, i'm not sure. try just running it directly (/bin/ls) so the alias won't kick in

frankie_g 05-15-2002 10:52 AM

yep, you're right, the alias is still there. So I added an alias in the user's bashrc. OK thanks much.


All times are GMT -5. The time now is 04:58 PM.