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

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

Closed
canh25xp opened this issue Feb 17, 2025 · 4 comments
Closed
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 Resolution-By-Design It's supposed to be this way. Sometimes for compatibility reasons.

Comments

@canh25xp
Copy link

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.

@canh25xp canh25xp 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 17, 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.

@canh25xp canh25xp reopened this Feb 17, 2025
@canh25xp
Copy link
Author

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

@j4james
Copy link
Collaborator

j4james commented 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.

@carlos-zamora
Copy link
Member

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 carlos-zamora closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2025
@carlos-zamora carlos-zamora added the Resolution-By-Design It's supposed to be this way. Sometimes for compatibility reasons. label Feb 19, 2025
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 Resolution-By-Design It's supposed to be this way. Sometimes for compatibility reasons.
Projects
None yet
Development

No branches or pull requests

3 participants