[Konsole-devel] [Bug 48109] konsole gets confused by ANSI sequences
Olivier Mengué
dolmen at users.sourceforge.net
Fri Mar 9 14:36:04 UTC 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=48109
------- Additional Comments From dolmen users sourceforge net 2007-03-09 15:36 -------
This is not a bug in Konsole or xterm.
This is the shell that is confused about where it is, not the terminal.
You just have to properly configure your shell to ignore ESC sequences when counting characters that move the cursor.
With bash, just wrap ESC sequences with \[ and \].
For example:
export PS1='\[\e[0;33m\]\u:\w> \[\e[0m\]'
With ksh, this is not as easy, but you can use '\015' to tell the shell from which char it must count characters.
The resolution of the bug must be INVALID instead of WONTFIX.
More information about the konsole-devel
mailing list