Black background in PowerShell commands #9404

Open
opened 2026-01-31 01:53:35 +00:00 by claunia · 0 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:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9404