Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.2.7.0.20000919222650.00b67670@pop.bresnanlink.net> X-Sender: cabbey AT pop DOT bresnanlink DOT net X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Tue, 19 Sep 2000 22:35:59 -0500 To: cygwin AT sourceware DOT cygnus DOT com From: Chris Abbey Subject: [patch] Re: odd bash wrapping due to ansi codes In-Reply-To: <39C8000D.9495.1D41E706@localhost> References: <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20000917030431 DOT 00bd6a10 AT pop> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_394026140==_" --=====================_394026140==_ Content-Type: text/plain; charset="us-ascii"; format=flowed At 00:08 9/20/00 +1000, Robert Praetorius wrote: > I've found that bash is happier when I wrap ANSI (or ANSIesque) >escape and control sequences inside \[ . . . \]. To quote from the >bash man page: > > \[ begin a sequence of non-printing characters, which > could be used to embed a terminal control sequence > into the prompt > \] end a sequence of non-printing characters BINGO! With Robert's addition I've cleared up 95% of the problems I'm seeing with shells. (I actually had to resort to a cmd.exe prompt today because my office mates were threatening violence) I've discovered that the default configuration is *far* less susceptible to these problems due to it's multi line nature and 80 column width. However I think this can be considered "doing the right thing" and will make the default configuration a better starting point for those who tweak the shell to feel more like their other systems. I've attached the patch as a bz2 because it's got control chars littered through it. (somewhere between work and home there is an smtp server that kept crashing on this patch) --=====================_394026140==_ Content-Type: application/octet-stream; name="patch.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch.bz2" QlpoOTFBWSZTWVxYy8YAACH/gACwAAhEj3z6ZkrMDo/n1sBAALdkJU0KHqZAA0AD1DTyRoG1CISY nqeg9QEYAEwBGNBhoaaAGgANAADIaBKISeU00aGgaBk0NBkACQyxOW48ZVx2NP14Re48Y5WRDUuj 8o8BNJOCqSewQggiKVDnCtWkWIVqvyBIbtJlHnUjYRKR3mwSogCixiTcTmMVM0YbaC9ikQineO6D rddypp4EIFaqhVLaYqyCcPItbnCGd3pPv6gW8a99hZOSkTtOQ/siOwOPP30lh7TEQcKj0lPx3YEt 1P4u5IpwoSC4sZeM --=====================_394026140==_ Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --=====================_394026140==_--