Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-05-2003, 04:03 PM   #1
Registered: Jul 2003
Location: Santiago, Chile
Distribution: Gentoo
Posts: 282

Rep: Reputation: 30
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?
Old 10-05-2003, 04:10 PM   #2
Registered: Jun 2003
Posts: 33

Rep: Reputation: 15

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

Last edited by Raspis21; 10-05-2003 at 04:18 PM.
Old 10-05-2003, 05:05 PM   #3
Registered: Jul 2003
Location: Santiago, Chile
Distribution: Gentoo
Posts: 282

Original Poster
Rep: Reputation: 30
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.
Old 01-04-2012, 04:48 PM   #4
LQ Newbie
Registered: Jan 2012
Posts: 1
Blog Entries: 2

Rep: Reputation: Disabled
Smile 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


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the background color of xterm permanently? vxc69 Linux - Software 9 01-22-2018 01:30 PM
How to change background and fonts color in xterm? macondo Debian 17 04-30-2016 04:46 AM
Xterm font color aeruzcar Linux - Software 7 10-11-2003 10:15 PM
xterm font change asc3ndant Linux - General 0 06-23-2003 07:47 PM
change font NOT in X centr0 Slackware 4 05-01-2003 03:29 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:19 PM.

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