Re: Colors
On Thu, 6 Aug 1998, Remco van de Meent wrote:
> On Thu, 6 Aug 1998, Hamish Moffatt wrote:
>
> : On Thu, Aug 06, 1998 at 01:06:22PM +0200, Remco van de Meent wrote:
> : > On Thu, 6 Aug 1998, Luiken, Arijan wrote:
> : >
> : > : I wonder (my guess that this is more a bash/linux question) is it
> : > : possible to display colors (ansi) in your prompt and ifso HOW ????
> : >
> : > Yup, just use the 'standard' escape sequences and put them in the PS1
> : > environment variable.
> :
> : "Standard"? Which? Bad idea IMHO.
>
> I mean the ANSI escape sequences like ESC[33;1m etc.
>
> -Remco
In your .bash_profile or similar, enter a line like:
PS1=^V[[33;1m This is my prompt
To get the escape sequence, press Ctrl-V, Ctrl-left-bracket, then
left-bracket and the correct number.
I saw a good article in the Linux Gazette dealing with this. I think it
was one of the 2-cent Tips from this year's issues. (Just use a search
engine to find Linux Gazette's web site, then browse the back issues.)
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to:
- Follow-Ups:
- Re: Colors
- From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
- References:
- Re: Colors
- From: Remco van de Meent <rvdmeent@xs4all.nl>