[Konsole-devel] non-printing escape sequences munge cursor position?

Waldo Bastian bastian at kde.org
Fri Sep 26 10:47:35 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 25 September 2003 18:46, Phil Sackinger wrote:
> Hi,
>
> Thanks for creating and maintaining konsole. All those warnings about
> dragons in the xterm code didn't scare you enough, though:) I tried
> searching the mail list archives and didn't get any quick hits on this,
> so here it is:
>
> I like to insert color-changing escape sequenses into my shell prompt,
> (PS1 in bash). For example, the pwd is in one color, the time another,
> the event still another (and I embed a newline in the prompt as well.)
>
> Lately I've noticed that auto new line scrolling in konsole doesn't work
> properly. It skips to the beginning of the line *before* I reach the 80
> character terminal width. Also, it doesn't insert the newline and
> appears to be overwriting the old line contents.
>
> I suspect this has to do with the current cursor position not being
> known properly because of the escape sequences in my prompt string.

bash internally keeps track of where it thinks that your cursor is. These 
escape sequences may confuse bash. Can you compare the behavior in konsole 
with that in xterm?

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/dBlHN4pvrENfboIRAjwJAKCXzMCUHvz3p5i3S1YwoKevqEMZrACeMmYY
L8qjzl48b/IISGaL5W/c90A=
=ZZGv
-----END PGP SIGNATURE-----


More information about the konsole-devel mailing list