LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-26-2004, 10:26 AM   #1
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
How do I change the background color of xterm permanently?


How do I go about changing the background color of xterm permanently so that next time I run xterm, it'll have the bg' color I chose?

Thanks,
vxc
 
Old 10-26-2004, 10:49 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
man xtermset
 
Old 10-26-2004, 11:28 AM   #3
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Original Poster
Rep: Reputation: 33
Thanks for the reply bigrigdriver!

xtermset allows me to change the bg color dynamically.

But, I would like to know if it is possible to change the bg color permanently so that I don't have to change it everytime I use xterm.


Thanks again,
vxc
 
Old 10-26-2004, 11:47 AM   #4
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Original Poster
Rep: Reputation: 33
I tried what mrcheeks had said in this thread.

I can change the cursor color and the font size using mrcheeks method. The bg and foreground colors don't seem to change.

This is my XTerm file:
Code:
XTerm*background: black
XTerm*cursorColor: lightgrey
XTerm*foreground: white
XTerm*saveLines: 1024
XTerm*scrollBar: true
vxc

Last edited by vxc69; 10-26-2004 at 11:50 AM.
 
Old 10-26-2004, 11:48 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Please re-examine man xtermset. The -store option should store the options you want in .xtermsetrc in your home directory.
 
Old 10-26-2004, 11:56 AM   #6
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Original Poster
Rep: Reputation: 33
Quote:
Originally posted by bigrigdriver
Please re-examine man xtermset. The -store option should store the options you want in .xtermsetrc in your home directory.
Yeah I did use the '-store' flag to store my settings to .xtermsetrc.

xtermset uses the .xtermsetrc file only when I use the '-default' flag. Unfortunately I cannot use it to change my xterm settings permanently.

vxc
 
Old 11-19-2004, 02:09 PM   #7
kenng
LQ Newbie
 
Registered: Nov 2004
Distribution: Fedora
Posts: 1

Rep: Reputation: 0
In case you don't have xtermset (ie: Fedora Core 3), you can edit the.Xdefaults file in your home directory. Look at /usr/lib/X11/app-defaults/XTerm for example settings.
 
Old 11-19-2004, 02:27 PM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
another simple way is to alias xterm with xterm -bg <something>....
 
Old 01-21-2018, 02:52 PM   #9
LouCFur
LQ Newbie
 
Registered: Oct 2017
Posts: 12

Rep: Reputation: Disabled
Smile works well for me too

Quote:
Originally Posted by perfect_circle View Post
another simple way is to alias xterm with xterm -bg <something>....
using an alias is a good idea, it's nice and simple. Simple and effective is my favorite way to do things. Thanks for the tip.
 
Old 01-22-2018, 01:30 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by vxc69 View Post
I tried what mrcheeks had said in this thread.

I can change the cursor color and the font size using mrcheeks method. The bg and foreground colors don't seem to change.

This is my XTerm file:
Code:
XTerm*background: black
XTerm*cursorColor: lightgrey
XTerm*foreground: white
XTerm*saveLines: 1024
XTerm*scrollBar: true
vxc
it is very strange that this shouldn't work.
it should be either in ~/.Xdefaults or in ~/.Xresources.
On my system .Xresources does NOT get parsed automatically, so i need to add a call for it 'xrdb -merge ~/.Xresources' to my autostart file.
you can also try various permutations of capitalization, on my system 'xterm*background' seems to work, or even '*background'.

edit:
Sh!t, another necrobump!
 
  


Reply



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 to change background and fonts color in xterm? macondo Debian 17 04-30-2016 04:46 AM
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 - Software

All times are GMT -5. The time now is 11:54 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