From owner-freebsd-questions Wed Nov 7 23:52:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from harrier.prod.itd.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by hub.freebsd.org (Postfix) with ESMTP id BC2AF37B41B for ; Wed, 7 Nov 2001 23:52:14 -0800 (PST) Received: from sdn-ar-008dcwashp041.dialsprint.net ([63.178.91.153] helo=moo.holy.cow) by harrier.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 161jyv-0007kj-00 for freebsd-questions@FreeBSD.ORG; Wed, 07 Nov 2001 23:52:14 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id 83B4B50D5B; Thu, 8 Nov 2001 02:53:15 -0500 (EST) Date: Thu, 8 Nov 2001 02:53:15 -0500 From: parv To: freebsd-questions@FreeBSD.ORG Subject: Re: Automatically setting TERM=xterm-color in Konsole ? Message-ID: <20011108025315.A57718@moo.holy.cow> Mail-Followup-To: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG in message <20011107185614.E9173@moondog.org>, wrote Elden Fenison thusly... > > * Ernst de Haan [10/03/2001 16:20]: > > That works. It's a dirty hack, but it works :-) > > Another solution that I stumbled across is putting the term type in my > .Xdefaults file. That works for rxvt... not sure about konsole. Here's > the line: > > rxvt*termName: xterm-color > > > > Add this to your .bashrc (or equivalent for your shell) : > > > > > > if [ "$TERM" == "xterm" ]; then > > > export TERM=xterm-color > > > fi a variation of the above would be... if [ ${TERM:0:5} == "xterm" -o ${TERM:0:4} == "rxvt" ]; then TERM=xterm-color export TERM fi ...i needed to add "rxvt" bit after upgrading aterm from 0.4.0 version to 0.4.2. - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message