Version: (using Devel) Installed from: Compiled sources When switching Konsole's shell to zsh (settings / edit current profile / set command to "/usr/bin/zsh"), the "Clear Scrollback & Reset" feature (ctrl+shift+x) kills the shell prompt ("username@machine:directory>") as well. Very occasionally -- I'm not sure what causes it -- it will work correctly.
Konsole unfortunately does not know which of the text on the screen is the shell and which is other data that should be cleared. It uses a trick of jiggling the size of the screen after clearing the display which causes Bash to redraw its shell. That does not work with zsh though. A possible fix might be to try keeping the contents of the line containing the cursor - although that might cause some odd behavior.
Hmm... echo -n "asdf" and then changing the width causes zsh to redraw its prompt. Could you provide more details? Thanks, Nicholas
> Hmm... echo -n "asdf" and then changing the width causes zsh > to redraw its prompt. Could you provide more details? When you press Ctrl+Shift+X Konsole clears the display and resets the state of the terminal and then jiggles the size of the window by sending a couple of 'signals' to the shell: window_size_changed(current_lines,current_columns+1) window_size_changed(current_lines,current_columns-1) This causes bash to redraw the prompt. That does not appear to work for zsh. I have not investigated the issue in more detail. Suggestions welcome although they would ideally have to work for bash as well since Konsole does not always know which shell is currently being used.
I am "suffering" from this bug too :-P Hope this gets fixed at some point
The same happens when using tcsh. BTW. gnome-terminal fails on this too, so this is maybe better filed upstream.