Window is not cleared #22922

Closed
opened 2026-01-31 08:27:18 +00:00 by claunia · 5 comments
Owner

Originally created by @ygoe on GitHub (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.

Originally created by @ygoe on GitHub (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.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:27:19 +00:00
Author
Owner

@similar-issues-ai[bot] commented on GitHub (Feb 14, 2025):

We've found some similar issues:

  • #15768 , similarity score: 81%

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.

@similar-issues-ai[bot] commented on GitHub (Feb 14, 2025): We've found some similar issues: - #15768 , similarity score: 81% 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.
Author
Owner

@ygoe commented on GitHub (Feb 14, 2025):

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

@ygoe commented on GitHub (Feb 14, 2025): Looks like the same, but it's closed and forgotten, so we need a new issue for the open bug.
Author
Owner

@DHowett commented on GitHub (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.

@DHowett commented on GitHub (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.
Author
Owner

@ygoe commented on GitHub (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?

@ygoe commented on GitHub (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?
Author
Owner

@DHowett commented on GitHub (Mar 26, 2025):

I think it may be! Sorry!

@DHowett commented on GitHub (Mar 26, 2025): I think it may be! Sorry!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22922