[konsole] [Bug 464384] Up / down history damaged if last command output did not end in newline
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Sat Jan 21 22:31:59 GMT 2023
https://bugs.kde.org/show_bug.cgi?id=464384
ninjalj at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |NOT A BUG
Status|REPORTED |RESOLVED
CC| |ninjalj at gmail.com
--- Comment #4 from ninjalj at gmail.com ---
That's just bash (actually readline) thinking that the prompt starts at the
leftmost position of the current line, then when you press Down, just moving to
position 5, and clearing to the end of line.
When you press Down, bash sends the following to the terminal:
\r\33[C\33[C\33[C\33[C\33[K
That's a carriage return to move to the leftmost position of the current line,
four (the length of the prompt) CUF (Cursor Forward) control sequences, and an
EL (Erase in Line) control sequence, which with parameter 0 (default) clears
from the current cursor position to the end of the line.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list