[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Prompt with colors code causes incorrect wrap at the end of the line
From: Maciej Pilichowski <macias () mat ! uni ! torun ! pl>
Date: 2008-04-22 17:06:39
Message-ID: 200804221906.39225.macias () mat ! uni ! torun ! pl
[Download RAW message or body]
[ if there was junk mail sent from my adddress I am sorry for that,
accident while using bashbug program ]
Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler:
gcc -I/usr/src/packages/BUILD/bash-3.2 \
-L/usr/src/packages/BUILD/bash-3.2/../readline-5.2 Compilation
CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' \
-DCONF_MACHTYPE='i586-suse-linux-gnu uname output: Linux flatline \
2.6.22.18-61-default #1 SMP 2008/02/15 03:27:01 UTC i686 i686 i386 GNU/Linux
Machine Type: i586-suse-linux-gnu
Bash Version: 3.2
Patch Level: 25
Release Status: release
Description:
Compare to prompts:
export PS1='\e[37;1;40m[\A]\e[0m$(pwd)> '
export PS1='[\A]$(pwd)> '
the former it is the same as the latter but uses color. When using
colorful prompt and entering very long line the word wrap works
incorrectly.
Repeat-By:
Use the colorful version. Type for example
mv ver
and hit tab, assuming there is a file with
very-long-I-mean-realllllyyyyyyy-long-to-be-exact-very-very-huge-long-filename-with-some-addition-to-cause-word-wrap
in your system and observe how the "tail" of the filename is wrapped
to the same line, instead of next.
Check with Konsole, xterm, and console.
--
Maciej Pilichowski
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic