Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: The scrollback buffer persists through clearing with cls #253

Open
ZzZombo opened this issue Apr 15, 2023 · 2 comments
Open

Issue: The scrollback buffer persists through clearing with cls #253

ZzZombo opened this issue Apr 15, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@ZzZombo
Copy link

ZzZombo commented Apr 15, 2023

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.
@gerardog
Copy link
Owner

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 gerardog added the help wanted Extra attention is needed label Apr 17, 2023
@joestr
Copy link

joestr commented Jul 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants