LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to change background and fonts color in xterm? (https://www.linuxquestions.org/questions/debian-26/how-to-change-background-and-fonts-color-in-xterm-156290/)

macondo 03-11-2004 09:27 AM

How to change background and fonts color in xterm?
 
Hi guys: i did a dist-upgrade and was fine, except, my xterm is in white with black fonts. I googled, and edited /etc/X11/apps-defaults/XTerm-color but nada!

I want my background black with white fonts.

Any ideas?

thank you!

mac

utabintarbo 03-11-2004 09:39 AM

I believe you can do it with a command line option.

ie.
Code:

xterm -fg white -bg black
Bob

macondo 03-11-2004 12:10 PM

thanks utabintarbo: the thing is, as soon as you close the xterm and restart another one, it reverts to the original problem. :(

mac

asabjorn 03-28-2004 10:05 AM

To change the color permanently in the RHL default terminal you have to change the Terminals default profile. In the menu choose >>
edit->Profiles
Mark the profile named 'default' by clicking on it. In the menu choose>>
edit.
A window will pop up an in the top you will see 'colors', select that. Uncheck box 'Use colors from system theme', and then you will be able to select 'White on Black' or anything else as you please.

Andreas

mrcheeks 03-29-2004 01:22 AM

type man xterm
create a file named(sensitive case) XTerm in your home directory with your specs

XTerm*Background: linen
XTerm*Foreground: black
XTerm*font: 9x15
XTerm*saveLines: 1000
XTerm*HiForeColor: white
XTerm*HiBackColor: #c06077
XTerm*geometry: +50+100

prajakta0shimpi 08-07-2008 01:51 AM

How do I do it in runlevel 3 or 2 ??
I do not find xterm command there....

linuxlover.chaitanya 08-07-2008 02:06 AM

On run level 2 and 3 you already have a command line. These run levels are for that purpose. Why do you need a terminal emulator when you already are working on command line.

prajakta0shimpi 08-07-2008 02:31 AM

Hi,

What I need is to change background to white

linuxlover.chaitanya 08-07-2008 03:41 AM

This will help you a bit. You will have to look out for color schemes and color numbers. For making changes permanent put this line in .bashrc

export PS1="\e[0;31m[\u@\h \W]\$ \e[m "

AlucardZero 07-09-2012 06:02 PM

This topic is the first Google result for "xterm black background", so sorry for the necro, but the question is IMO not clearly answered and contains several totally irrelevant replies.

If you want your XTerm color to be white font on black background, then create or edit a file named .Xdefaults in your home directory, and place the following in it:

Code:

XTerm*Background: black
XTerm*Foreground: white

Then restart xterm.

You can of course switch the colors if you want black on white.

60lpsdf250 09-20-2012 06:22 PM

Quote:

Originally Posted by AlucardZero (Post 4723347)
This topic is the first Google result for "xterm black background", so sorry for the necro, but the question is IMO not clearly answered and contains several totally irrelevant replies.

If you want your XTerm color to be white font on black background, then create or edit a file named .Xdefaults in your home directory, and place the following in it:

Code:

XTerm*Background: black
XTerm*Foreground: white

Then restart xterm.

You can of course switch the colors if you want black on white.

Thanks for the necro. Works perfectly.

osirisgothra 06-18-2013 06:06 AM

and so...6 months later i say
 
Quote:

Originally Posted by AlucardZero (Post 4723347)
This topic is the first Google result for "xterm black background", so sorry for the necro, but the question is IMO not clearly answered and contains several totally irrelevant replies.

If you want your XTerm color to be white font on black background, then create or edit a file named .Xdefaults in your home directory, and place the following in it:

Code:

XTerm*Background: black
XTerm*Foreground: white

Then restart xterm.

You can of course switch the colors if you want black on white.

This is exactly right, too many people are responding with irrelevant replies, please people read the | o )amn topic before posting messages!!

MicBert 03-07-2014 08:42 AM

Quote:

Originally Posted by AlucardZero (Post 4723347)
This topic is the first Google result for "xterm black background", so sorry for the necro, but the question is IMO not clearly answered and contains several totally irrelevant replies.

If you want your XTerm color to be white font on black background, then create or edit a file named .Xdefaults in your home directory, and place the following in it:

Code:

XTerm*Background: black
XTerm*Foreground: white

Then restart xterm.

You can of course switch the colors if you want black on white.

There is also a parameter 'reverseVideo', which can be 'true' or 'false'. If it is true, like:
Code:

XTerm*reverseVide: true
background and foreground colors are inverted.

Mich

Plotnus 08-28-2014 01:10 PM

Thank You AlucardZero!
Quote:

Originally Posted by AlucardZero (Post 4723347)
This topic is the first Google result for "xterm black background", so sorry for the necro, but the question is IMO not clearly answered and contains several totally irrelevant replies.

If you want your XTerm color to be white font on black background, then create or edit a file named .Xdefaults in your home directory, and place the following in it:

Code:

XTerm*Background: black
XTerm*Foreground: white

Then restart xterm.

You can of course switch the colors if you want black on white.

Further moreYou can pick any color for background and foreground using Alu's method and changing the colors to one's you want.

For example:
Code:

XTerm*Background: dark slate gray
XTerm*Foreground: antique white

Color Name Chart

joanluc 10-01-2015 03:02 PM

modify the background color of a running xterm
 
Is it possible to modify the background color of a running xterm ?

I like to use xterm because they are light shell windows and don't use so much ressources the Gnome-terminal or KDE Konsole but when you have a grat number of them with a ssh shell on different servers in each they are difficult to reconize with only a name.
I thinck it would be a good way to reconize process running in each xterm if it would modify the background color of it, is it possible to do so ?

I mean, in Gnome-Terminal or Konsole, it's easy to modify the background of a running terminal by modifying its profile using the terminal menu, with xterm there is not such a ressource, you can activate some ressources by cliking the mouse keys with the Ctrl-key active but nome of these ressources control the background or the foreground color.

Do somebody know a way to do it ?


All times are GMT -5. The time now is 04:43 AM.