Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-Id: <4.3.2.7.0.20001001022514.00bf2ee0@pop.bresnanlink.net>
X-Sender: cabbey@pop.bresnanlink.net
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Sun, 01 Oct 2000 02:41:48 -0500
To: DJ Delorie <dj@delorie.com>
From: Chris Abbey <cabbey@bresnanlink.net>
Subject: [patch] Re: odd bash wrapping due to ansi codes
Cc: cygwin@sourceware.cygnus.com
In-Reply-To: <200009260119.VAA12992@envy.delorie.com>
References: <4.3.2.7.0.20000919222650.00b67670@pop.bresnanlink.net>
 <4.3.2.7.0.20000917030431.00bd6a10@pop>
 <4.3.2.7.0.20000919222650.00b67670@pop.bresnanlink.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed

sorry for the delay, I've been offline for a week...
Wow, I didn't realize this was generated; here's the first patch
I propose, and the one most likely to be acceptable to all.

~/cyg $ cvs diff -ub src/winsup/cinstall/desktop.cc
Index: src/winsup/cinstall/desktop.cc
===================================================================
RCS file: /cvs/src/src/winsup/cinstall/desktop.cc,v
retrieving revision 2.2
diff -u -b -r2.2 desktop.cc
--- desktop.cc  2000/09/08 00:14:20     2.2
+++ desktop.cc  2000/10/01 07:26:38
@@ -77,8 +77,8 @@
    "done",
    "",
    "export MAKE_MODE=unix",
-  "export PS1='\033]0;\\w\a",
-  "\033[32m\\u@\\h \033[33m\\w\033[0m",
+  "export PS1='\\[\\033]0;\\w\a",
+  "\\033[32m\\]\\u@\\h \\[\\033[33m\\w\\033[0m\\]",
    "$ '",
    "",
    "cd $HOME",


changelog:

2000-10-01  Chris Abbey <chris_abbey@yahoo.com>

         * desktop.cc:  cleaned up PS1: wrapped non-printables in
                        \[ \], used escape sequences for binary chars.

At 21:19 9/25/00 -0400, you wrote:

>Could you supply a patch to the sources, not the generated profile?
>They're in src/winsup/cinstall/desktop.cc
>
>Don't forget the ChangeLog entry!
>
>http://sources.redhat.com/cygwin/cvs.html


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

