Date: Sun, 11 May 2003 23:25:14 +0100 From: Jez Hancock <jez.hancock@munk.nu> To: questions@freebsd.org Subject: Re: Console Syntax Highlighting Message-ID: <20030511222514.GA19858@users.munk.nu> In-Reply-To: <20030511215123.GA38556@anoat.phoenix> References: <3EBE84DC.9080706@openadventures.org> <20030511183849.GB14936@users.munk.nu> <20030511215123.GA38556@anoat.phoenix>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 11, 2003 at 02:51:23PM -0700, Nicolas Galler wrote: > btw one of the problem I had when switching between freebsd, linux and sun is > the terminfo file for cons25 from one of the other os landed in my .terminfo > directory and it had some kind of default colorless info. > So you might want to check on terminfo(5), see if you get colors if you do > something like > echo -e '\e[31mhello' > see if echo $TERM gives cons25. Try ls -FG with root. > see if you get colors in an xterm (you might need TERM=xterm-color as previous > poster pointed out... seems to work as is for me though with ls -FG), also > if you are telnetting from a linux box it's a bit special. This is a good point I forgot to mention - I have a minimally effective clause in my .cshrc file to help in the case I login on a system console (cons25): switch ($TERM) case xterm*: setenv TERM xterm-color # make the title bar say 'user@hostname': echo -n "${e}]2;${USER}@${host}${g}" endsw This is good as long as you use a tty emulator that sets the $TERM env variable, although I'm sure there are plenty of cases where it won't work. Worth a shot anyway :) Jez
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030511222514.GA19858>