[konsole] [Bug 378642] Last line of output gets deleted

Egmont Koblinger bugzilla_noreply at kde.org
Tue Apr 11 07:33:22 UTC 2017


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

Egmont Koblinger <egmont at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egmont at gmail.com

--- Comment #1 from Egmont Koblinger <egmont at gmail.com> ---
This is not konsole's fault. In fact, all the terminal emulators behave the
same way.

The app running inside (e.g. the bash shell) is notified about the window size
change, and in turn decides to repaint part of the screen, wiping out the
"foobar" string.

konsole simply obeys the instructions it receives, that's what it should do.

It could probably consider not to resize the window on "Find", though.

This is a much higher level design problem. You could try to accept that the
overall design sucks, and get used to pressing an Enter as soon as a command
completes without a trailing newline (that is, the prompt is not at the left
margin), or get used to the content being stripped off otherwise.

Alternatively, there's a hack to start a newline if the command didn't end with
one. At the beginning of your PS1 prompt (or PROMPT_COMMAND) emit (columns-1)
spaces, then a carriage return and maybe also a \eK to clear 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