LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Change font color xterm (http://www.linuxquestions.org/questions/linux-software-2/change-font-color-xterm-100573/)

aeruzcar 10-05-2003 04:03 PM

Change font color xterm
 
Hello There:
Is there a way to set xterm with a white background and black only text, I know that with the -bg command I set up the background color, but when I run a the man command it displays the manual in different colors, how can I set it to display black font for default?
Thanks

Raspis21 10-05-2003 04:10 PM

Hi,

Sure you can, when you open xterm, or your script does, make sure it has the -foreground switch....ie xterm -foreground black (or red, green, etc)
-fg is simpler I guess

If I want to change the colors, I make an alias in my bash profile.

alias xterm='xterm -fg black'

or any other switched you want, the file to do it is ~/.bashrc

Enjoy!

*oops edit* you wanted black only, my mistake

aeruzcar 10-05-2003 05:05 PM

I tried that, but I still get the man pages in different colors, I need them to be always black, (I am colorblind), so I need withe background and black fonts for everything.
Thanks

TeddyB34R 01-04-2012 04:48 PM

How to do it
 
I guess this is coming in a little late

however, if you havent got it yet, there is an easy way to do it:

Go into your terminal and type in the following:
:cd
:ls -a
:emacs .Xdefaults
XTerm*background: black
XTerm*foreground: white

Save with control x s

When you open a new terminal the changes should be made


All times are GMT -5. The time now is 12:30 AM.