LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I change the background color of xterm permanently? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-change-the-background-color-of-xterm-permanently-247490/)

vxc69 10-26-2004 10:26 AM

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

bigrigdriver 10-26-2004 10:49 AM

man xtermset

vxc69 10-26-2004 11:28 AM

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

vxc69 10-26-2004 11:47 AM

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

bigrigdriver 10-26-2004 11:48 AM

Please re-examine man xtermset. The -store option should store the options you want in .xtermsetrc in your home directory.

vxc69 10-26-2004 11:56 AM

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

kenng 11-19-2004 02:09 PM

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.

perfect_circle 11-19-2004 02:27 PM

another simple way is to alias xterm with xterm -bg <something>....

LouCFur 01-21-2018 02:52 PM

works well for me too
 
Quote:

Originally Posted by perfect_circle (Post 1303029)
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.

ondoho 01-22-2018 01:30 PM

Quote:

Originally Posted by vxc69 (Post 1257384)
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!


All times are GMT -5. The time now is 11:32 AM.