[konsole] [Bug 397757] Background Color Erase: bce madness when line too long
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Fri Mar 11 00:26:40 GMT 2022
https://bugs.kde.org/show_bug.cgi?id=397757
ninjalj at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ninjalj at gmail.com
--- Comment #5 from ninjalj at gmail.com ---
(In reply to Per Drive from comment #4)
> UP.
> I have a related bug so instead of opening a new one, I'll try updating it
> to give it visibility. And I think they have the same origin.
>
> To me the bug lies in the calculations of the prompt size as it incorporates
> control characters which should not be taken into account.
>
> So, the way to reproduce it is way simpler than in the original submission:
>
> Step one: create a color prompt such as:
> > PS1='${debian_chroot:+($debian_chroot)}\033[93m\u@\h:\w\033[0m > '
Terminal control sequences in PS1 should be enclosed between \[ and \], as in:
PS1='${debian_chroot:+($debian_chroot)}\[\033[93m\]\u@\h:\w\[\033[0m\] > '
so bash can keep a correct idea of where the cursor is.
See
https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Controlling-the-Prompt
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list