Results 1 to 8 of 8

Thread: How do I define permanent settings for XTerm?

  1. #1
    Join Date
    Oct 2014
    Location
    Montpezat (France)
    Posts
    32

    Default 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:

    Code:
    $ 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

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How do I define permanent settings for XTerm?

    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)

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,130

    Default Re: How do I define permanent settings for XTerm?

    Quote Originally Posted by robin_listas View Post
    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:
    Code:
    man xterm
    To edit there is of course a system wide configuration change and not for one user only.
    Henk van Velden

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How do I define permanent settings for XTerm?

    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)

  5. #5
    Join Date
    Oct 2014
    Location
    Montpezat (France)
    Posts
    32

    Default Re: How do I define permanent settings for XTerm?

    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:

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

    Niki

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,130

    Default Re: How do I define permanent settings for XTerm?

    Quote Originally Posted by microlinux View Post
    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:

    Code:
    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 . 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.
    Henk van Velden

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How do I define permanent settings for XTerm?

    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:
    > --------------------
    > XTerm*background: #000000
    > XTerm*foreground: LightGrey
    > XTerm*font: 9x15
    > XTerm*VT100.geometry: 125x48
    > --------------------


    Noted...

    --
    Cheers / Saludos,

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

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How do I define permanent settings for XTerm?

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

    > Yes, that is as it is done in X since the 1990ties . 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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •