Subject: X Terminals
To: None <netbsd-help@netbsd.org>
From: Matt Herzog <mherzog@attbi.com>
List: netbsd-help
Date: 04/27/2002 14:30:26
Hi All.

I'm curious about why if I launch an rxvt with:

/usr/X11R6/bin/rxvt -ls -bg black -fg green -cr blue -fn 10x20 -sr

=46rom a WindowMaker menu (or from the command line) and type:

echo $TERM

the shell says "xterm."

Could this be because ksh can't really tell the difference between
the two very closely related terms? This happened even when there was
no "xterm" string in either my .kshrc or my .profile.

------------------------- dot profile ---------------------------------
HOME=3D~ ; export HOME
ENV=3D'${HOME}/.kshrc' ; export ENV

#mesg n

if [ `/usr/bin/whoami` =3D "root" ]; then
	umask 022
else
	umask 077
fi

if [ -x /usr/bin/tset ]; then
	eval `/usr/bin/tset -sQrm 'unknown:?unknown'`
fi

export QT_XFT=3Dtrue konqueror

echo
cd
/usr/games/fortune
echo

------------------------- pertinent .kshrc lines ---------------

# .kshrc, 2000.05.20

if [ -n "$PS1" ]; then
# interactive shell
     if [ "$TERM" =3D rxvt -o "$TERM" ]; then
	stty erase =7F
     fi =20
fi =20

if [ `/usr/bin/uname` =3D "HP-UX" ]; then
        HOSTAGE=3D`/bin/hostname | cut -c1-4` ; export HOSTAGE
else
        HOSTAGE=3D`/bin/hostname -s | cut -c1-4` ; export HOSTAGE
fi

#PS1=3D"fancy prompt"

if [ `/usr/bin/whoami` =3D "root" ]; then
	PS1=3D'$HOSTAGE$WINDOW$ ' ; export PS1
else
	PS1=3D'$HOSTAGE$WINDOW$ ' ; export PS1
fi

-- =20
Matthew Herzog

Powered by NetBSD		 :www.netbsd.org: