Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: jdarnold AT buddydog DOT org, " Mikael" 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: <4243160C DOT 7040503 AT buddydog DOT org> <42431AC9 DOT 2070602 AT buddydog DOT 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 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 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/