weird black background when pressing space in windows legacy powershell #22932

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

Originally created by @canh25xp on GitHub (Feb 17, 2025).

Windows Terminal version

1.22.10352.0

Windows build number

10.0.19045.0

Other Software

powershell legacy version 5.1.19041.5369 no Profile.

Steps to reproduce

Open powershell(legacy) in the terminal and press space.

Expected Behavior

No black background should not appear.

Actual Behavior

A black background is appear when ever a space is enter, as shown in the image below.

Image

This only happends with legacy version of powershell.

Using any theme other than pitch black background theme results in this behaviour.

The previous version of windows terminal 1.21.3231.0 does not have this problem.

Originally created by @canh25xp on GitHub (Feb 17, 2025). ### Windows Terminal version 1.22.10352.0 ### Windows build number 10.0.19045.0 ### Other Software powershell legacy version `5.1.19041.5369` no Profile. ### Steps to reproduce Open powershell(legacy) in the terminal and press space. ### Expected Behavior No black background should not appear. ### Actual Behavior A black background is appear when ever a space is enter, as shown in the image below. ![Image](https://github.com/user-attachments/assets/2420e614-f67c-4fab-9c8c-26606c1bfb51) This only happends with legacy version of powershell. Using any theme other than pitch black background theme results in this behaviour. The previous version of windows terminal `1.21.3231.0` does not have this problem.
claunia added the Resolution-By-DesignNeeds-TriageIssue-Bug labels 2026-01-31 08:27:42 +00:00
Author
Owner

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

We've found some similar issues:

  • #6767 , 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 17, 2025): We've found some similar issues: - #6767 , 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

@canh25xp commented on GitHub (Feb 17, 2025):

This issue seam to happens with older release, it got fixed and then now reappear in this version.

@canh25xp commented on GitHub (Feb 17, 2025): This issue seam to happens with [older release](https://github.com/microsoft/terminal/issues/6767), it got [fixed](https://github.com/microsoft/terminal/pull/6810) and then now reappear in this version.
Author
Owner

@j4james commented on GitHub (Feb 18, 2025):

@canh25xp I'm afraid the change in color handling is by design. That fix was a temporary hack that has now been removed. The reasoning is explained in PR #17666, but the gist of it is that you need to upgrade PSReadLine, or use a black/white color scheme if that isn't an option.

@j4james commented on GitHub (Feb 18, 2025): @canh25xp I'm afraid the change in color handling is by design. That fix was a temporary hack that has now been removed. The reasoning is explained in PR #17666, but the gist of it is that you need to upgrade PSReadLine, or use a black/white color scheme if that isn't an option.
Author
Owner

@carlos-zamora commented on GitHub (Feb 19, 2025):

Thanks for filing! As j4james said above, this is by design. More info can be found in PR #17666 and the issue it closes. 😊

@carlos-zamora commented on GitHub (Feb 19, 2025): Thanks for filing! As j4james said above, this is by design. More info can be found in PR #17666 and the issue it closes. 😊
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22932