How do I define permanent settings for XTerm?

Hi,

I have openSUSE 13.1 in a “Minimal X Window” running on a machine here, configured with the IceWM desktop. In its default configuration, XTerm displays a light yellow background with black text. I’d like to change this behaviour, so I set:

$ xtermset -store -bg black -fg lightgrey -cr green

Unfortunately this setting is not permanent. When I close XTerm and open it again, it shows with the original yellow background.

Any idea on how I could define permanent settings for XTerm?

Cheers,

Niki

On 2014-10-10 10:46, microlinux wrote:

> Any idea on how I could define permanent settings for XTerm?

I edit: /usr/share/X11/app-defaults/XTerm


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

And for the OP, that can be found in the man page for xterm:

man xterm

To edit there is of course a system wide configuration change and not for one user only.

On 2014-10-10 15:46, hcvv wrote:
>
> robin_listas;2668729 Wrote:
>> On 2014-10-10 10:46, microlinux wrote:
>>
>>> Any idea on how I could define permanent settings for XTerm?
>>
>> I edit: /usr/share/X11/app-defaults/XTerm

> And for the OP, that can be found in the man page for xterm:
>
> Code:
> --------------------
> man xterm
> --------------------
>
>
> To edit there is of course a system wide configuration change and not
> for one user only.

Of course.

Looking again in the (looong) manual, I notice this:

… “in your .Xdefaults file to automatically use this resource file
rather than /usr/share/X11/app-defaults/XTerm. If you do not do this,
xterm”.

So maybe you can manage to do local settings in there. I’ve never tried.
Xterm configuration is complex and unfriendly.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Thanks for all your replies. Though I admit “man xterm” is like asking for an identity photo, and getting a 2x3 meters oil painting.

Here’s the solution I found. Edit an ~/.Xresources file like this:

XTerm*background: #000000
XTerm*foreground: LightGrey
XTerm*font: 9x15
XTerm*VT100.geometry: 125x48

Cheers,

Niki

Yes, that is as it is done in X since the 1990ties lol!. You even need more documentation to realyt understand this: about X resources. But I do not recommend you to realy study them except for academic purposes.

On 2014-10-13 17:56, microlinux wrote:
>
> Thanks for all your replies. Though I admit “man xterm” is like asking
> for an identity photo, and getting a 2x3 meters oil painting.

I agree. I would rather say that you get a wall filled with hieroglyphs.
That particular manual is a… I lack words. It’s on its own class.

> Here’s the solution I found. Edit an ~/.Xresources file like this:
>
>
> Code:
> --------------------
> XTermbackground: #000000
> XTerm
foreground: LightGrey
> XTermfont: 9x15
> XTerm
VT100.geometry: 125x48
> --------------------

Noted…


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

On 2014-10-13 18:06, hcvv wrote:

> Yes, that is as it is done in X since the 1990ties lol!. You even need
> more documentation to realyt understand this: about X resources. But I
> do not recommend you to realy study them except for academic purposes.

Or if you use xterms…

For instance, I have some scripts that start several xterms positioning
them in exact positions in the display, with a particular directory
displayed already. Or scripts that starts several simultaneous tasks
each on a separate xterms. You can do things that are not even possible
with other terminals, that expect settings via menu.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)