Bug 138413 - cursor postioning error on line transgression using ansied PS1
Summary: cursor postioning error on line transgression using ansied PS1
Status: RESOLVED DUPLICATE of bug 48109
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.6
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-05 22:07 UTC by Elmar Stellnberger (AT/K)
Modified: 2007-03-09 18:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***