Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2000 13:09:05 +0100
From:      Mark Ovens <marko@freebsd.org>
To:        Randal Masutani <randal@hits.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can't get ansi color codes to work with sc0 console
Message-ID:  <20000811130905.D254@parish>
In-Reply-To: <399341E3.28197.49E6E6@localhost>; from randal@hits.net on Thu, Aug 10, 2000 at 11:59:31PM -1000
References:  <399341E3.28197.49E6E6@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000811130905.D254>