[Top][All Lists]

[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
gcc -I/usr/src/packages/BUILD/bash-3.2 
uname output: Linux flatline #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


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 

Use the colorful version. Type for example
mv ver
and hit tab, assuming there is a file with
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]