delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/24/16:08:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 24 Mar 2005 23:07:46 +0200
Message-Id: <200503242107.j2OL7k77013635@beta.mvs.co.il>
From: "Ehud Karni" <ehud AT unix DOT mvs DOT co DOT il>
To: jdarnold AT buddydog DOT org, " Mikael" <mindcooler AT gmail DOT com>
Cc: cygwin AT cygwin DOT 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 AT unix DOT mvs DOT co DOT il
References: <d1v41l$kii$1 AT sea DOT gmane DOT org> <4243160C DOT 7040503 AT buddydog DOT org> <d1v5e8$p5i$1 AT sea DOT gmane DOT org> <42431AC9 DOT 2070602 AT buddydog DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes

On Thu, 24 Mar 2005 14:53:45 -0500, Jonathan Arnold <jdarnold AT buddydog DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019