Date: Wed, 26 Feb 2003 14:25:37 +0000 From: Daniel Bye <dan@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: xterm + colors just wont splice... Message-ID: <20030226142537.GC55640@catflap.home.slightlystrange.org> In-Reply-To: <20030226140522.81320.qmail@web13502.mail.yahoo.com> References: <20030226114118.1572b18a.flynn@energyhq.homeip.net> <20030226140522.81320.qmail@web13502.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 26, 2003 at 06:05:22AM -0800, Thanos Tsouanas wrote: > > --- Miguel Mendez <flynn@energyhq.homeip.net> wrote: > > On Wed, 26 Feb 2003 02:32:33 -0800 (PST) > > Thanos Tsouanas <thief_grr@yahoo.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030226142537.GC55640>