delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/30/23:34:11

X-Spam-Check-By: sourceware.org
Message-ID: <442CB135.9000901@byu.net>
Date: Thu, 30 Mar 2006 21:33:57 -0700
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, william DOT xue AT gmail DOT com
Subject: Re: tail after tab completion in prompt
References: <op DOT s67pxkxlhkv0w5 AT williamxue>
In-Reply-To: <op.s67pxkxlhkv0w5@williamxue>
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 William Xue on 3/29/2006 11:06 PM:
> Hi,
> Please let me describe the issue for you:

Issues like this have been reported in the past, but this is the first
report against readline-5.1-5.

> After set the PS1 in .bashrc to :
> ---8<--------------------------------------------->8---
> PS1="\[\e]2;\w  --  \s\V@\l@\H  hangsps:\j    \d 
> \t\a\]\[\e[31;1m\][\[\e[36;1m\]\u@\h
> \[\e[33;1m\]\W\[\e[31;1m\]]\[\e[34;1m\]\[\e[32;1m\]\$ \[\e[37;1m\]"
> ---8<--------------------------------------------->8---
> 
> If type "ls /usr/src" twice, it will show "ls /usr/src/usr/src".

OK, I'm seeing some weird behavior as well; readline-5.1-5, $TERM set to
xterm in an rxvt window.  This sounds like yet another case of the weird
prompt display when you use a one-line prompt with invisible characters,
and I have not yet been able to track down what is going wrong in
readline.  I'll ask upstream to see if Chet has any ideas what is going wrong.

> 
> Is there something wrong in the PS1? And how can I fix this issue?

As a workaround, avoid invisible characters (but lose all the cool colors
in your prompt), use a prompt that expands to multiple lines (for example,
the default prompt in cygwin's /etc/profile).  People have also reported
that recompiling readline to disable multibyte characters will help,
although I am reluctant to do that for the cygwin release because I don't
know what else that would impact.  Otherwise, I would certainly appreciate
help from anyone in debugging the issue.

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

iD8DBQFELLE184KuGfSFAYARAhv1AJ9duu2UKM8eFA1Z4YpIwndilO10fwCdGm/o
CpuMjelJmQGJDzED/AWTAXA=
=w1tW
-----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