Background & foreground formatting of command options broken in Windows PowerShell in WT 1.22.10352.0 #22848

Open
opened 2026-01-31 08:25:08 +00:00 by claunia · 0 comments
Owner

Originally created by @wolf99 on GitHub (Feb 6, 2025).

Windows Terminal version

1.22.10352.0

Windows build number

10.0.19045.0

Other Software

Windows PowerShell 5.1.19041.5369

Steps to reproduce

  1. Open WT
  2. Open a Windows PowerShell tab in WT
  3. Type a command with an option, e.g.: winget update

Expected Behavior

The command option (update in the above example) should have the correct foreground and background colors and formatting.
In previous WT version (v1.21.10351.0) this worked as expected.
i.e. the command option foreground (text color) was grey and italicised, the background was the normal poowershell blue.
(There is no theme used for the powershell profile)

Actual Behavior

The command option has incorrect foreground and background color and formatting.
The foreground is white and non-italicised, the background is black (first command line in screenshot)
Using the backspace key results in the text being deleted, but the black foregrouhd is then extended through the deleted area (second command line in screenshot)

Image

Originally created by @wolf99 on GitHub (Feb 6, 2025). ### Windows Terminal version 1.22.10352.0 ### Windows build number 10.0.19045.0 ### Other Software Windows PowerShell 5.1.19041.5369 ### Steps to reproduce 1. Open WT 2. Open a Windows PowerShell tab in WT 3. Type a command with an option, e.g.: `winget update` ### Expected Behavior The command option (`update` in the above example) should have the correct foreground and background colors and formatting. In previous WT version (v1.21.10351.0) this worked as expected. i.e. the command option foreground (text color) was grey and italicised, the background was the normal poowershell blue. (There is no theme used for the powershell profile) ### Actual Behavior The command option has incorrect foreground and background color and formatting. The foreground is white and non-italicised, the background is black (first command line in screenshot) Using the backspace key results in the text being deleted, but the black foregrouhd is then extended through the deleted area (second command line in screenshot) ![Image](https://github.com/user-attachments/assets/95ebe7d2-fb9a-43ce-af9f-6133c1a1657f)
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:25:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22848