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

Phil Sackinger pasacki at sandia.gov
Mon Sep 29 15:55:34 UTC 2003


Your suspicions are correct.

The same behaviorial problem with color escape sequences is apparent
under both xterm and rxvt as well as with konsole.

I didn't realize bash needed to be responsible for cursor position.

On Fri, 2003-09-26 at 04:47, Waldo Bastian wrote:
> -----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