Bug 138413

Summary: cursor postioning error on line transgression using ansied PS1
Product: [Applications] konsole Reporter: Elmar Stellnberger (AT/K) <estellnb>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 1.6   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Elmar Stellnberger (AT/K) 2006-12-05 22:07:45 UTC
Version:           1.6 (using KDE 3.5.1 Level "a" , SUSE 10.1)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.16.21-0.25-default

> PS1="\e[0;48;33m\u:\w> \e[0m"
Now enter a command line, which too long for the cols of the konsole window (Eingabe länger als das Konsolenfenster breit ist)
The cursor starts at the beginning of the same line rather than the beginning of the next line; the input gets messed.

username~path>fffffff
fffffame~path>fffffff

instead of
username~path>fffffff
fffff
Comment 1 Olivier Mengué 2007-03-09 17:29:45 UTC
This is duplicate of bug #48109.

It can be resolved as INVALID.
Comment 2 Elmar Stellnberger (AT/K) 2007-03-09 17:46:32 UTC
This is caused by libreadline, which is used by bash.
solution:
Enclose escape sequence by \[...\] to tell bash that it has zero length.
Comment 3 Bram Schoenmakers 2007-03-09 18:20:46 UTC
Thanks Olivier.

*** This bug has been marked as a duplicate of 48109 ***