From owner-freebsd-questions@FreeBSD.ORG Sun May 11 15:25:16 2003 Return-Path: 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 4410F37B401 for ; Sun, 11 May 2003 15:25:16 -0700 (PDT) Received: from mail.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90CA043F3F for ; Sun, 11 May 2003 15:25:15 -0700 (PDT) (envelope-from munk@mail.munk.nu) Received: from munk by mail.munk.nu with local (Exim 4.14) id 19EzFq-0005E1-Lz for questions@freebsd.org; Sun, 11 May 2003 23:25:14 +0100 Date: Sun, 11 May 2003 23:25:14 +0100 From: Jez Hancock To: questions@freebsd.org Message-ID: <20030511222514.GA19858@users.munk.nu> Mail-Followup-To: questions@freebsd.org References: <3EBE84DC.9080706@openadventures.org> <20030511183849.GB14936@users.munk.nu> <20030511215123.GA38556@anoat.phoenix> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030511215123.GA38556@anoat.phoenix> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: Console Syntax Highlighting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2003 22:25:16 -0000 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