LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-11-2004, 09:27 AM   #1
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
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
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-11-2004, 09:39 AM   #2
utabintarbo
LQ Newbie
 
Registered: Jan 2002
Location: Shelby Township, MI
Distribution: Mainly Debian, Q4OS, and RasPi
Posts: 28

Rep: Reputation: 16
I believe you can do it with a command line option.

ie.
Code:
xterm -fg white -bg black
Bob
 
1 members found this post helpful.
Old 03-11-2004, 12:10 PM   #3
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Original Poster
Rep: Reputation: 62
thanks utabintarbo: the thing is, as soon as you close the xterm and restart another one, it reverts to the original problem.

mac
 
Old 03-28-2004, 10:05 AM   #4
asabjorn
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
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

Last edited by asabjorn; 03-28-2004 at 10:07 AM.
 
Old 03-29-2004, 01:22 AM   #5
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
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

Last edited by mrcheeks; 03-29-2004 at 01:24 AM.
 
4 members found this post helpful.
Old 08-07-2008, 01:51 AM   #6
prajakta0shimpi
LQ Newbie
 
Registered: May 2007
Posts: 16

Rep: Reputation: 0
How do I do it in runlevel 3 or 2 ??
I do not find xterm command there....
 
Old 08-07-2008, 02:06 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
Old 08-07-2008, 02:31 AM   #8
prajakta0shimpi
LQ Newbie
 
Registered: May 2007
Posts: 16

Rep: Reputation: 0
Hi,

What I need is to change background to white
 
Old 08-07-2008, 03:41 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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 "
 
Old 07-09-2012, 06:02 PM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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.
 
Old 09-20-2012, 06:22 PM   #11
60lpsdf250
LQ Newbie
 
Registered: Aug 2011
Location: Texas, USA
Distribution: Arch Linux, FreeBSD, Gentoo, LFS 6.8, 7.1 (updating to LFS 7.2)
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by AlucardZero View Post
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.
 
Old 06-18-2013, 06:06 AM   #12
osirisgothra
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Rep: Reputation: Disabled
and so...6 months later i say

Quote:
Originally Posted by AlucardZero View Post
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!!
 
Old 03-07-2014, 08:42 AM   #13
MicBert
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
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
 
Old 08-28-2014, 01:10 PM   #14
Plotnus
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Rep: Reputation: Disabled
Thank You AlucardZero!
Quote:
Originally Posted by AlucardZero View Post
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
 
Old 10-01-2015, 03:02 PM   #15
joanluc
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
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 ?
 
  


Reply

Tags
xterm



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
Change font color xterm aeruzcar Linux - Software 3 01-04-2012 04:48 PM
Change background in solaris and Xterm background also EvilAngel Solaris / OpenSolaris 2 01-31-2005 11:25 AM
Change background color chingyenccy Linux - Newbie 6 01-23-2005 03:17 AM
Is there a way to change background color out of X? purpleburple Linux - General 1 01-23-2003 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:32 PM.

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