Black background in PowerShell commands #9407

Closed
opened 2026-01-31 01:53:37 +00:00 by claunia · 3 comments
Owner

Originally created by @krzysdz on GitHub (Jul 3, 2020).

Since commit ddbe370 (#6506) a black background appears after space in commands while using PowerShell.

Environment

Windows build number: 10.0.19041.329
Windows Terminal versions: all since commit ddbe370

Steps to reproduce

  1. Open PowerShell (tested in 5.1 and 7.0.2)
  2. Do either of these:
    • press space,
    • write anything and press space,
    • use the arrow up to display a command from history that contains a space character.

Expected behavior

The background colour does not change and the acrylic effect is visible.
terminal_PS_older

Actual behavior

A weird black background appears after the space character.
terminal_PS_black_bg

Originally created by @krzysdz on GitHub (Jul 3, 2020). Since commit ddbe370 (#6506) a black background appears after space in commands while using PowerShell. # Environment ```none Windows build number: 10.0.19041.329 Windows Terminal versions: all since commit ddbe370 ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> 1. Open PowerShell (tested in 5.1 and 7.0.2) 2. Do either of these: - press space, - write anything and press space, - use the arrow up to display a command from history that contains a space character. # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> The background colour does not change and the acrylic effect is visible. ![terminal_PS_older](https://user-images.githubusercontent.com/12915102/86419104-978d5f00-bcd2-11ea-8459-a14c1a2b2588.gif) # Actual behavior <!-- What's actually happening? --> A weird black background appears after the space character. ![terminal_PS_black_bg](https://user-images.githubusercontent.com/12915102/86418848-ca832300-bcd1-11ea-88ae-ec00bf11166a.gif)
claunia added the Resolution-Fix-CommittedResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 01:53:38 +00:00
Author
Owner

@DHowett commented on GitHub (Jul 3, 2020):

/dup https://github.com/PowerShell/PSReadLine/issues/830

There is going to be a very long tail of issues like this that stem from Terminal being more correct. There's a pull request out to PSReadline that fixes this, and it will take time for it to get reviewed and released.

@DHowett commented on GitHub (Jul 3, 2020): /dup https://github.com/PowerShell/PSReadLine/issues/830 There is going to be a very long tail of issues like this that stem from Terminal being _more correct_. There's a pull request out to PSReadline that fixes this, and it will take time for it to get reviewed and released.
Author
Owner

@ghost commented on GitHub (Jul 3, 2020):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost commented on GitHub (Jul 3, 2020): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!
Author
Owner

@ghost commented on GitHub (Jul 22, 2020):

:tada:This issue was addressed in #6810, which has now been successfully released as Windows Terminal Preview v1.2.2022.0.🎉

Handy links:

@ghost commented on GitHub (Jul 22, 2020): :tada:This issue was addressed in #6810, which has now been successfully released as `Windows Terminal Preview v1.2.2022.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.2.2022.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9407