X-Spam-Check-By: sourceware.org Message-ID: <44477E5B.9000406@byu.net> Date: Thu, 20 Apr 2006 06:28:11 -0600 From: Eric Blake 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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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/