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

Window is not cleared #18577

Open
ygoe opened this issue Feb 14, 2025 · 4 comments
Open

Window is not cleared #18577

ygoe opened this issue Feb 14, 2025 · 4 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@ygoe
Copy link

ygoe commented Feb 14, 2025

Windows Terminal version

1.21.3231.0

Windows build number

10.0.22631.4602

Other Software

No response

Steps to reproduce

  1. Set Terminal as the default terminal app in Windows 11
  2. Run a console application from Visual Studio
  3. Don't close the temrinal tab
  4. Run your app from VS again

Expected Behavior

Normal rendering of output in an empty window.

Actual Behavior

Most of the time, when starting your app from VS, the terminal window is cleared and the new app output is shown.

Sometimes, and then often in a row, the old content remains visible in the terminal and the new output is "printed over it". Any content that isn't written by the new app output remains there. This is completely unreadable.

The only solution is then to stop the app, close the terminal tab or window, and run the app again to have it print its output in a clean window.

@ygoe ygoe added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 14, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@ygoe
Copy link
Author

ygoe commented Feb 14, 2025

Looks like the same, but it's closed and forgotten, so we need a new issue for the open bug.

@DHowett
Copy link
Member

DHowett commented Feb 14, 2025

Visual Studio tries to reuse the same console window for debugging sessions. This is a bug in their debug session broker. You may need to file a bug on their Developer Community forum.

Terminal is not in charge of session reuse.

@ygoe
Copy link
Author

ygoe commented Feb 14, 2025

I've never seen this bug before switching to Windows Terminal. Is the bug in Visual Studio only applying to this terminal host app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants