-   Linux - Software (
-   -   Change font color xterm (

aeruzcar 10-05-2003 05: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?

Raspis21 10-05-2003 05:10 PM


Sure you can, when you open xterm, or your script does, make sure it has the -foreground 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


*oops edit* you wanted black only, my mistake

aeruzcar 10-05-2003 06: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.

TeddyB34R 01-04-2012 05: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:
: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:15 PM.