[konsole] [Bug 459217] resizing when a bash prompt is too long produces lots of garbled text

Marco Martin bugzilla_noreply at kde.org
Mon Sep 19 14:56:25 BST 2022


https://bugs.kde.org/show_bug.cgi?id=459217

--- Comment #3 from Marco Martin <notmart at gmail.com> ---
further investigating, when the garbled text happens, this is what
Pty::dataReceived() sees arriving from bash:

\r\u001B[K\u001B[A\u001B[01;32mdiau at phobos\u001B[01;34m
~/git/kf5/build/kde/applications/konsole/thisisaverylongdirectorynametoreproducebugs\u001B[01;33m\u001B[01;34m
$\u001B[00m
t/kf5/build/kde/appli\r\n\rcations/konsole/thisisaverylongdirectorynametoreproduceb


note the point kde/appli\r\n\rcations/konsole   this is where the word wrap of
the long command happened, and since konsole informs bash about the window
size, bash will produce text "already wrapped" so that konsole doesn't know
anymore the last line is wrapped, producing probably the \n in the copied text
and making the prompt redraw in the wrong line when resizing producing the
garbled text

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list