From owner-freebsd-questions Fri Aug 11 5:10:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by hub.freebsd.org (Postfix) with ESMTP id 6E61A37B89D for ; Fri, 11 Aug 2000 05:10:55 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.84.54]) by mta03-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000811121051.RJKI16423.mta03-svc.ntlworld.com@parish.my.domain>; Fri, 11 Aug 2000 13:10:51 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id NAA01242; Fri, 11 Aug 2000 13:09:05 +0100 (BST) (envelope-from mark) Date: Fri, 11 Aug 2000 13:09:05 +0100 From: Mark Ovens To: Randal Masutani Cc: freebsd-questions@freebsd.org Subject: Re: Can't get ansi color codes to work with sc0 console Message-ID: <20000811130905.D254@parish> References: <399341E3.28197.49E6E6@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <399341E3.28197.49E6E6@localhost>; from randal@hits.net on Thu, Aug 10, 2000 at 11:59:31PM -1000 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Aug 10, 2000 at 11:59:31PM -1000, Randal Masutani wrote: > I am not able to get any ANSI color codes to > work with the standard sc0 console since > installing 4.1 release. > > All other releases I had no problem. Has anyone > tried using something like: > > set prompt="^[[1;33;41m[`whoami`]^[[1;37;40m " > Hmm, this appears to be shell specific. What shell are you using? I use csh which is now (a hard link to) tcsh and your prompt does the same for me. However, if you switch to sh(1) and enter: % sh $ PS1="^[[1;33;41m[`whoami`]^[[1;37;40m " [mark] [appears as yellow on red] (the ESC char, ^[, typed as ``CtrlV ESC''). > All I get for the prompt is the exact same > string between the quotes as shown above without > any color. > > Is there something new in RELEASE 4.1 that > handles color ANSI code differently? > > Thanks > Randal > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message