-----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;[EMAIL PROTECTED] \[\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 [EMAIL PROTECTED] 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/