gsudo
gsudo copied to clipboard
Issue: The scrollback buffer persists through clearing with `cls`
Issue Description
Using Windows Terminal and PowerShell Core, the cls
command only clears the immediate console window. The scrollback buffer survives intact.
Steps to Reproduce
- Run the terminal.
- Fill the screen so that lines start to go off.
- Issue the
cls
command.
Context:
- Windows version: Win10 22H2 (9045.2846).
- gsudo version: 2.0.6.
Hi, I sincerely don't know what's going on.
Whatever the problem is, it does not occur in attached mode.
You can use gsudo --attached pwsh
or configure attached as default mode with gsudo config ForceAttachedConsole true
.
Anyone with explanations is invited to jump into this conversation. Thanks
Interestingly running pwsh.exe -Command clear
clears the scrollback.