public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Chris Abbey <cabbey@bresnanlink.net>
To: DJ Delorie <dj@delorie.com>
Cc: cygwin@sourceware.cygnus.com
Subject: [patch] Re: odd bash wrapping due to ansi codes
Date: Sun, 01 Oct 2000 00:43:00 -0000	[thread overview]
Message-ID: <4.3.2.7.0.20001001022514.00bf2ee0@pop.bresnanlink.net> (raw)
In-Reply-To: <200009260119.VAA12992@envy.delorie.com>

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

  reply	other threads:[~2000-10-01  0:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-17  2:07 Chris Abbey
2000-09-19  7:10 ` Robert Praetorius
2000-09-19 20:36   ` [patch] " Chris Abbey
2000-09-19 21:23     ` Randall R Schulz
2000-09-19 22:24       ` Chris Abbey
2000-09-20  5:58         ` Andreas Eibach
2000-09-25 13:42       ` DJ Delorie
2000-09-25 18:20     ` DJ Delorie
2000-10-01  0:43       ` Chris Abbey [this message]
2000-10-01  3:34         ` [RE-patch] " Chris Abbey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.3.2.7.0.20001001022514.00bf2ee0@pop.bresnanlink.net \
    --to=cabbey@bresnanlink.net \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=dj@delorie.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).