On Wed, Feb 26, 2003 at 06:05:22AM -0800, Thanos Tsouanas wrote: > > --- Miguel Mendez <[EMAIL PROTECTED]> wrote: > > On Wed, 26 Feb 2003 02:32:33 -0800 (PST) > > Thanos Tsouanas <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message