PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

Set `DefaultTokenColor` to `39m` instead of `37m`

Open SteveL-MSFT opened this issue 2 years ago • 1 comments

Prerequisites

  • [X] Write a descriptive title.

Description of the new feature/enhancement

Currently, the DefaultTokenColor is 37m which is white. However, when used with a light theme, that text is invisible. It would be better to use 39m which sets it to the terminals default color which would automatically adjust for light and dark themes. We should validate that popular terminals handle 39m as we expect before making the change (try light and dark themes).

Proposed technical implementation details (optional)

No response

SteveL-MSFT avatar May 30 '23 15:05 SteveL-MSFT

Prior notes here! https://github.com/MicrosoftDocs/PowerShell-Docs/issues/9358#issuecomment-1307597242

DHowett avatar May 30 '23 15:05 DHowett