Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 24 Mar 2005 23:07:46 +0200
Message-Id: <200503242107.j2OL7k77013635@beta.mvs.co.il>
From: "Ehud Karni" <ehud@unix.mvs.co.il>
To: jdarnold@buddydog.org, " Mikael" <mindcooler@gmail.com>
Cc: cygwin@cygwin.com
Subject: Re: rxvt problem: Prompt doesn't look very nice
In-reply-to: <42431AC9.2070602@buddydog.org> (message from Jonathan Arnold on Thu, 24 Mar 2005 14:53:45 -0500)
Organization: Mivtach-Simon Insurance agencies
Reply-to: ehud@unix.mvs.co.il
References: <d1v41l$kii$1@sea.gmane.org> <4243160C.7040503@buddydog.org> <d1v5e8$p5i$1@sea.gmane.org> <42431AC9.2070602@buddydog.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-8-i
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On Thu, 24 Mar 2005 14:53:45 -0500, Jonathan Arnold <jdarnold@buddydog.org> wrote:
>
> Well, you aren't going to get a colored prompt from within Emacs, but you
> can set it up in your .bashrc so it is usable.  I have this code in my .bashrc:
>
> if [ "$EMACS" == "t" ]
> then
>      export PS1="*** \@ *** \w  ***\n\r"
> else
>      export PS1="*** $LCYAN\@$WHITE *** $YELLOW\w$WHITE  ***\n\r$NEUTRAL"
> fi
>
> So while it isn't colored, it gives me the info anyway.

I do the terminal checking the other way, because many terminals can
not display colors. Like this:

if [ "$TERM" = xterm -o    \
    "$TERM" = cygwin ] ; then
       (set PS with colors)
else
       (set PS with NO colors)
fi

Ehud.


--
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

