Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2005 13:28:03 +0200
From:      Thanos Tsouanas <thanos@sians.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: tcsh, colorful prompt
Message-ID:  <20050107112803.GB10151@kender.sians.org>
In-Reply-To: <20050107030659.GA2673@Pandora.MHoerich.de>
References:  <20050106001935.GA29480@kender.sians.org> <20050107030659.GA2673@Pandora.MHoerich.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 07, 2005 at 04:06:59AM +0100, Mario Hoerich wrote:
> # Thanos Tsouanas:
> > I dont really care for the color of the prompt, but I would like
> > to see what i type (input) with a specific color.
> [...]
> > In short, i would like the color to end upon \n...
> 
> I think you can do this with
> 
>     alias postcmd 'echo "<ESC>[0m"'
> 
> For the <ESC> character, press ctrl-v and then esc
> (which inserts a ^[-character as literal). 

thanks!

tput sgr0 also does the trick :)

-- 
Thanos Tsouanas <thanos@sians.org> .: Sians
http://thanos.sians.org/           .: http://www.sians.org/



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