From owner-freebsd-questions Wed Feb 26 6:25:48 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C184937B401 for ; Wed, 26 Feb 2003 06:25:46 -0800 (PST) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id A02BE43FD7 for ; Wed, 26 Feb 2003 06:25:45 -0800 (PST) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 18o2V8-000Ee3-00 for freebsd-questions@freebsd.org; Wed, 26 Feb 2003 14:25:38 +0000 Date: Wed, 26 Feb 2003 14:25:37 +0000 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: xterm + colors just wont splice... Message-ID: <20030226142537.GC55640@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: <20030226114118.1572b18a.flynn@energyhq.homeip.net> <20030226140522.81320.qmail@web13502.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030226140522.81320.qmail@web13502.mail.yahoo.com> User-Agent: Mutt/1.4i X-Scanner: exiscan *18o2V8-000Ee3-00*nU4cKY2MKDo* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) 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 On Wed, Feb 26, 2003 at 06:05:22AM -0800, Thanos Tsouanas wrote: > > --- Miguel Mendez wrote: > > On Wed, 26 Feb 2003 02:32:33 -0800 (PST) > > Thanos Tsouanas wrote: > > > > Howdy. > > > > > when i run 'xterm' i still get the same problem... > > > btw, i dont have an xterm-color binary or sth like that... > > > > Okay, so what happens if you do something like: xterm -bg black -fg > > white -tn xterm-color and then try ls -G, still no colours? > > > > Superthanks! it works fine.. > > I also saw on the man xterm that theres something i can add to my > (non-existent) ~/.Xdefaults file.. > I added it though by default xterm runs colorless... > Any ways i can 'embed' the -tn xterm-color into xterm (w/o an alias i mean) > or change something that wud mean all similar applications to run in color-mode? Add this snippet to your ~/.bashrc (will need a slight rewrite to make it work under csh): if [ $TERM == "xterm" ]; then export TERM=xterm-color fi Since xterm sets TERM when it starts up, this approach is reasonably safe. It will only alter the value of $TERM if it has already been set to xterm. It will leave $TERM as cons25, for example, when you log in to a tty. It works well for me. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message