delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/20/08:28:24

X-Spam-Check-By: sourceware.org
Message-ID: <44477E5B.9000406@byu.net>
Date: Thu, 20 Apr 2006 06:28:11 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, nahor AT bravobrava DOT com
Subject: Re: bash completion
References: <e25q6e$92q$1 AT sea DOT gmane DOT org>
In-Reply-To: <e25q6e$92q$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Nahor on 4/19/2006 10:58 AM:
> Hi,
> 
> I have the following prompt in bash (Gentoo style):
> PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w $ \[\033[00m\]'
> 
> When I press <TAB> to get the list of possible completion on the command
> line, I have some extra characters added to the display:

Known problem, and I still have not been able to diagnose where the bug is
(searching the archive for 'prompt' will turn up several threads over the
past year or more).  In short, there is something about the combination of
multi-byte aware readline, invisible prompt characters, one-line prompts,
and our use of ncurses that is causing a readline display bug.
Workarounds include using a multi-line prompt (such as the default cygwin
prompt in /etc/profile), recompiling readline to avoid multibyte
characters (although I don't know how that would impact users, so I have
not attempted that), or avoiding invisible characters in your prompt (but
that defeats the purpose of the prompt).

I really would like to find a root cause, but have not had enough time to
attack it properly.

- --
Life is short - so eat dessert first!

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

iD8DBQFER35b84KuGfSFAYARAqEfAKCfxVyZEtLj/ZezE+JejmeBUbssyACfX0Ue
prifmXho3ynBBdviaj6txzo=
=4fQh
-----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