https://bugs.kde.org/show_bug.cgi?id=520637
Bug ID: 520637
Summary: scrollback mangled when resizing Konsole while
outputting a long line
Classification: Applications
Product: konsole
Version First 26.04.1
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: history
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 192595
--> https://bugs.kde.org/attachment.cgi?id=192595&action=edit
resizing window during output of long line
In the following, by output line I refer to a series of characters not
containing a newline and that are written to the terminal. Such an output line
may be wrapped into several visual lines.
When the scollback contains output lines that exceed the terminal width,
Konsole dynamically rewraps such lines when resizing the window. However, when
resizing the window in the middle of outputting such a long output line, the
scrollback for that line gets messed up.
The behavior is slightly different depending on the vertical position of the
cursor when the resize happens. When the cursor is at the bottom, it seems,
only the last visual line gets affected. Otherwise, more or less everything so
far is lost for the current output line and the cursor is reset to the top. In
both cases, the horizontal position of the cursor is not updated regardless of
where the output line currently ends after rewrapping.
The behavior can be seen in the attached video `konsole-resize-rewrap.webm`.
The following command was used in the video; note that it does not output any
newlines:
> konsole -e bash -c 'declare -i i=0; while true; do for j in {00..99}; do echo
> -n "${i}${j}_"; done; i+=1; sleep 2s; done'
EXPECTED RESULT
When resizing the window, the current output line should be rewrapped without
any loss of information. The cursor position should be updated such that it is
positioned at the current end of the current output line. For example,
`gnome-terminal` seems to behave like that.
SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.1
Kernel Version: 7.0.10-arch1-1 (64-bit)
Graphics Platform: Wayland
--
You are receiving this mail because:
You are watching all bug changes.