From: cabrera@wrc.xerox.com (Jose I. Cabrera)
Subject: Re: Colors.....
10 Sep 1998 18:12:13 -0700
Message-ID: <35F6FEB8.70DEF69C.cygnus.gnu-win32@wrc.xerox.com>
References: <199809071110.HAA03366@web06.iname.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Alex Rezinsky <alexr@aurora.sps.mot.com>
Cc: gnu-win32@cygnus.com

thank you very much....


Alex Rezinsky wrote:
> 
>     Hi,
> 
> This is fragment from my .bashrc file where I set colors for each prompt
> depending on exit status of the previous command.
> Hope this will help.
> 
> Alex Rezinsky
> Motorola Semiconductor Israel
> alexr@msil.sps.mot.com
> 
> -------------------------------
> 
> # Colors
> export fg_black="[30m"
> export fg_red="[31m"
> export fg_green="[32m"
> export fg_yellow="[33m"
> export fg_blue="[34m"
> export fg_magenta="[35m"
> export fg_cyan="[36m"
> export fg_white="[37m"
> export bg_black="[40m"
> export bg_red="[41m"
> export bg_green="[42m"
> export bg_yellow="[43m"
> export bg_blue="[44m"
> export bg_magenta="[45m"
> export bg_cyan="[46m"
> export bg_white="[47m"
> export normal="[0m"
> 
>         set_promtp_colors()
>         {
>             if (( $? ))
>             then
>                 prompt_beg=${bg_red}${fg_yellow}
>                 prompt_end=${normal}
>             else
>                 prompt_beg=${bg_blue}${fg_yellow}
>                 prompt_end=${normal}
>             fi
>         }
> 
> PROMPT_COMMAND=set_promtp_colors
> PS1=' \[${prompt_beg}\]<\!>\[${prompt_end}\] '
> 
> Jose I. Cabrera wrote:
> 
> > Does anyone knows how to put colors on the bash screen?  I have a nice
> > utility called NTSh and it has great colors.  Anyone?
> >
> > thanks.
> > jose
> > -
> > For help on using this list (especially unsubscribing), send a message to
> > "gnu-win32-request@cygnus.com" with one line of text: "help".
> >

-- 

Hasta pronto.....!!!
Y como dice mi pa'i, "Mecedora!!"

(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))
!!                 jose.....El Dominicano Americano Ausente.    !!
!!    These are my opinions and not my employer's.              !!
(((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
