From owner-freebsd-questions@FreeBSD.ORG Sun May 11 14:51:26 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 4AE7537B401 for ; Sun, 11 May 2003 14:51:26 -0700 (PDT) Received: from fed1mtao07.cox.net (fed1mtao07.cox.net [68.6.19.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C12E43F75 for ; Sun, 11 May 2003 14:51:25 -0700 (PDT) (envelope-from chive@cox.net) Received: from anoat.phoenix.net ([68.98.91.5]) by fed1mtao07.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030511215124.ZWPM19307.fed1mtao07.cox.net@anoat.phoenix.net> for ; Sun, 11 May 2003 17:51:24 -0400 Received: from anoat.phoenix.net (chive@localhost [127.0.0.1]) by anoat.phoenix.net (8.12.6/8.12.6) with ESMTP id h4BLpNsP038829 for ; Sun, 11 May 2003 14:51:23 -0700 (MST) (envelope-from chive@anoat.phoenix.net) Received: (from chive@localhost) by anoat.phoenix.net (8.12.6/8.12.6/Submit) id h4BLpNpF038828 for questions@freebsd.org; Sun, 11 May 2003 14:51:23 -0700 (MST) Date: Sun, 11 May 2003 14:51:23 -0700 From: Nicolas Galler To: questions@freebsd.org Message-ID: <20030511215123.GA38556@anoat.phoenix> References: <3EBE84DC.9080706@openadventures.org> <20030511183849.GB14936@users.munk.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030511183849.GB14936@users.munk.nu> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) 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 21:51:26 -0000 On Sun, May 11, 2003 at 07:38:49PM +0100, Jez Hancock wrote: > On Sun, May 11, 2003 at 10:14:04AM -0700, Tom Smith wrote: > > Is there a way to enable Linux-like syntax highlighting at the console? > If you want color in programs like vim etc, you'll also need: > > setenv TERM xterm-color > > in your .cshrc file (I believe you need this anyway for ls -G to work by > default). 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.