Skip to content

Prompt colors not configurable, not visible on white background #17961

Open
@dkaszews

Description

Prerequisites

Steps to reproduce

The confirmation dialog uses white text which is not visible on white background. This color cannot by changed by any Set-PSReadLineOption or $PSStyle variable. The [Y] Yes uses light yellow which is barely visible (in fact never noticed it before taking screenshot) and everything else is completely white and therefore invisible to me.

I propose to add $PSStyle.Confirmation options, preferably Primary/Selected/Default, Other, Help and Text.

Expected behavior

# As rendered
> mkdir test
> '' > test/test.txt
> del test

Confirm
The item at /home/dkaszews/Downloads/test has children and the Recurse parameter was not specified. 
If you continue, all children will be removed with the item. Are you sure you want to continue?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):

Actual behavior

# As rendered
> mkdir test
> '' > test/test.txt
> del test

Confirm
The item at /home/dkaszews/Downloads/test has children and the Recurse parameter was not specified. 
If you continue, all children will be removed with the item. Are you sure you want to continue?
                                                             [?] Help (default is "Y"):

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.0-preview.3
PSEdition                      Core
GitCommitId                    7.3.0-preview.3-304-gd02c59addc24e13da3b8ee5e1a8e7aa27e00c745
OS                             Linux 5.15.0-1013-raspi #15-Ubuntu SMP PREEMPT Mon Aug 8 06:33:06 UTC 2022
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

The [Y] Yes is barely visible as light yellow, all other values except [?] Help cannot be seen at all.

image

Selecting text reveals it.

image

Metadata

Assignees

Labels

In-PRIndicates that a PR is out for the issueWG-Interactive-Consolethe console experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions