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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |constantinpetretaris@gmail.
                   |                            |com

--- Comment #1 from [email protected] ---
Same here on Nov 2026 !

## SUMMARY
In Konsole on Windows 11, “Clear Scrollback and Reset” removes older lines from
scrollback, but the last screenful of output remains visible. I reproduced this
in both Ubuntu on WSL 2 and a native Windows PowerShell session.

## STEPS TO REPRODUCE
1. Open a Konsole tab running wsl.exe (Ubuntu, Bash) or powershell.exe.
2. Print enough numbered lines to fill the screen and create scrollback:
   Bash:       seq 1 999
   PowerShell: 1..999
3. Once the prompt returns, invoke View → Clear Scrollback and Reset (default
shortcut: Ctrl+Shift+K).

## OBSERVED RESULT
The final lines, including 999, remain visible. Scrolling up no longer reaches
the earlier lines. In Bash, pressing Ctrl+L afterward clears the remaining
output from the screen.

## EXPECTED RESULT
A single invocation clears both the visible output and the scrollback, with the
prompt redrawn at the top. This is the behavior I see in Konsole on Fedora 45.

## SOFTWARE/OS VERSIONS
Konsole: 27.03.70
Windows 11 Version 25H2
KDE Frameworks: 6.31.0
Qt: Using 6.12.0 and built against 6.12.0
Sessions tested: Ubuntu 26.04.1 LTS on WSL 2 (Bash), Windows PowerShell
(powershell.exe)
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.26200


## POSSIBLE CAUSE
>From reading the source, SessionController::clearHistoryAndReset() resets
Konsole’s terminal emulation and calls Session::refresh(), which briefly
changes the terminal width by one column to trigger a redraw. On Windows, that
resize goes through ResizePseudoConsole() in src/ptyqt/conptyprocess.cpp.

One possibility is that ConPTY still holds the previous screen contents and
sends them back to Konsole during the resize. I have not traced the output
during the resize to confirm this.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to