bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Prompt with colors code causes incorrect wrap at the end of the line


From: Maciej Pilichowski
Subject: Prompt with colors code causes incorrect wrap at the end of the line
Date: Tue, 22 Apr 2008 19:06:39 +0200
User-agent: KMail/1.9.9

[ 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]