delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/04/09:16:49

X-Spam-Check-By: sourceware.org
Message-ID: <4613A562.5090806@byu.net>
Date: Wed, 04 Apr 2007 07:17:22 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Escape colour codes
References: <etlt2v$aq0$1 AT sea DOT gmane DOT org> <euuhri$f63$1 AT sea DOT gmane DOT org> <euuih2$iro$1 AT sea DOT gmane DOT org> <euvkme$hv0$1 AT sea DOT gmane DOT org>
In-Reply-To: <euvkme$hv0$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Thorsten Kampe on 4/4/2007 1:38 AM:
> That's exactly the point. They actually do cope with the escapes - 
> just not with the \001 and \002 used by readline to calculate the 
> length of the line.
> 
>> (otherwise even bash would not work).
> 
> Yes, bash is the exception. Maybe bash doesn't use \001/\002?

I need a simple test case.  Readline indeed uses \001 and \002 for
internal purposes, but I'm not sure whether bash does as well, or whether
it is confined to readline.  Generally, readline is supposed to remove its
internal markers before displaying to the screen.  There may be some
interaction where bash uses these markers correctly but your other app is
using them in such a way that readline leaks them to the terminal.

> 
> Okay, so it's obviously a readline (or Cygwin) bug.
> 
> I think it's a readline thing (as rxvt doesn't have the problem) - the 
> question is just where to submit a bug report? To the Cygwin readline 
> maintainer or upstream?

You've already reported it to the cygwin readline/bash maintainer.  You
are also welcome to ask upstream, since the upstream maintainer knows more
about what readline actually expects with \1 and \2, but you need to be
sure your test case is simple enough that Chet can reproduce your
situation, or you won't get much of his time.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin readline maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGE6Vh84KuGfSFAYARAjoQAKC+7kty1U9d7hGu3tFCTw6ysmVIaQCeNNSy
1Ade2Wuf4fSU8iolpwu2/6Q=
=nAUW
-----END PGP SIGNATURE-----

--
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