[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tail after tab completion in prompt
From: |
Eric Blake |
Subject: |
tail after tab completion in prompt |
Date: |
Fri, 31 Mar 2006 08:20:18 -0700 |
User-agent: |
Thunderbird 1.5 (Windows/20051201) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Here is another case of a complaint about prompt display bugs when the
prompt occupies a single line and contains invisible characters. I was
able to repeat the original poster's display bugs on cygwin when using
rxvt, bash 3.1.14, readline 5.1 compiled with multibyte support using the
ncurses 5.5 library. I had to undo the line wraps from the PS1 in the
OP's email (use space instead of newline).
- -------- Original Message --------
Subject: tail after tab completion in prompt
Date: Thu, 30 Mar 2006 14:06:46 +0800
From: William Xue <william.xue AT gmail DOT com>
To: cygwin AT cygwin DOT com
Hi,
Please let me describe the issue for you:
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".
Is there something wrong in the PS1? And how can I fix this issue?
Advance Thanks!
- --
William
- --
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net
-----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
iD8DBQFELUiy84KuGfSFAYARAuM1AJ9FoUUXBIwFRlvQkRRoDxcmdjXw/QCfQF2M
NnwsM0XBHTwBzOgh8s/7Uy8=
=GfX1
-----END PGP SIGNATURE-----
- tail after tab completion in prompt,
Eric Blake <=