[PR #145] [CLOSED] Feature/powershell compatibility #24070

Closed
opened 2026-01-31 09:01:15 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/145
Author: @theunrepentantgeek
Created: 4/1/2018
Status: Closed

Base: masterHead: feature/powershell-compatibility


📝 Commits (2)

  • a9360de Add --powershell (-p) option for powershell compatibility
  • 168d560 Write a diagnostic if any unexpected argument is supplied

📊 Changes

2 files changed (+19 additions, -6 deletions)

View changed files

📝 tools/ColorTool/ColorTool/Program.cs (+12 -0)
📝 tools/ColorTool/ColorTool/Resources.resx (+7 -6)

📄 Description

The PowerShell console doesn't use the DARK_BLACK slot from the colour table for the console background; it uses the DARK_MAGENTA slot instead.

This PR adds options -p and --powershell to modify the colour table by copying the value from DARK_BLACK over DARK_MAGENTA so it works for PowerShell windows.

If this isn't done, the background of the PowerShell window has ... unexpected effects. Eg solarized_dark appears with a magenta background, and solarized_light appears with light blue.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/145 **Author:** [@theunrepentantgeek](https://github.com/theunrepentantgeek) **Created:** 4/1/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature/powershell-compatibility` --- ### 📝 Commits (2) - [`a9360de`](https://github.com/microsoft/terminal/commit/a9360de3ea8561293d395ec9d70d5f9d64001c97) Add --powershell (-p) option for powershell compatibility - [`168d560`](https://github.com/microsoft/terminal/commit/168d560f605ab89c07b5552377d2a1929dbdff1a) Write a diagnostic if any unexpected argument is supplied ### 📊 Changes **2 files changed** (+19 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/ColorTool/ColorTool/Program.cs` (+12 -0) 📝 `tools/ColorTool/ColorTool/Resources.resx` (+7 -6) </details> ### 📄 Description The PowerShell console doesn't use the DARK_BLACK slot from the colour table for the console background; it uses the DARK_MAGENTA slot instead. This PR adds options `-p` and `--powershell` to modify the colour table by copying the value from DARK_BLACK over DARK_MAGENTA so it works for PowerShell windows. If this isn't done, the background of the PowerShell window has ... *unexpected* effects. Eg `solarized_dark` appears with a magenta background, and `solarized_light` appears with light blue. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:01:15 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24070