Skip site navigation (1)Skip section navigation (2)
Date:      13 Jul 2001 14:36:10 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        "A. L. Meyers" <a.l.meyers@consult-meyers.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: xterm-color (2nd posting)
Message-ID:  <86vgkxf4d1.fsf@hades.hell.gr>
In-Reply-To: "A. L. Meyers"'s message of "Thu, 12 Jul 2001 20:17:38 %2B0200 (CEST)"
References:  <20010712201512.K388-100000@consult-meyers.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"A. L. Meyers" <a.l.meyers@consult-meyers.com> writes:

> Hi!
> 
> This may be such a simple, stupid question that no one has
> replied yet.
> 
> How do I set up X to get TERM=xterm-color by default?
> 
> The standard install makes me do
> 
> export TERM=xterm-color
> 
> every time I open a terminal in X.

You can set up the XTerm resource *termName to have this automagically changed
by xterm(1) every time you fire up an xterm.  With my ~/.xinitrc file being:

    #!/bin/sh
    
    userresources=$HOME/.Xresources
    usermodmap=$HOME/.Xmodmap
    sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
    sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
    
    test -f "${sysresources}"	&& xrdb -merge "${sysresources}"
    test -f "${userresources}"	&& xrdb -merge "${usersresources}"
    
    test -f "${sysmodmap}"		&& xmodmap "${sysmodmap}"
    test -f "${usermodmap}"		&& xmodmap "${usermodmap}"
    
    xset m 22/10 4
    xset +dpms
    xset dpms 300 1200 1800
    xset b 100 800 20
    xset r on
    xset r rate 250 30
    
    exec wmaker

I can put the changes to ~/.Xresources. A part of this file looks like:

    % grep XTerm ~/.Xresources
    XTerm*background: #224477
    XTerm*foreground: #ffffff
    XTerm*colorULMode: off
    XTerm*font3: -b&h-lucidatypewriter-medium-r-normal-sans-10-100-75-75-m-60-iso8859-1
    XTerm*font: -b&h-lucidatypewriter-medium-r-normal-sans-12-120-75-75-m-70-iso8859-1
    XTerm*termName:	xterm-color

-giorgos

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86vgkxf4d1.fsf>