gsudo icon indicating copy to clipboard operation
gsudo copied to clipboard

Issue: The scrollback buffer persists through clearing with `cls`

Open ZzZombo opened this issue 1 year ago • 2 comments

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

  1. Run the terminal.
  2. Fill the screen so that lines start to go off.
  3. Issue the cls command.

Context:

  • Windows version: Win10 22H2 (9045.2846).
  • gsudo version: 2.0.6.

ZzZombo avatar Apr 15 '23 15:04 ZzZombo

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

gerardog avatar Apr 16 '23 15:04 gerardog

Interestingly running pwsh.exe -Command clear clears the scrollback.

joestr avatar Jul 14 '23 07:07 joestr