Skip to content

Inline Prediction Colour is white/not dim after 2.3.3 upgrade. #3805

@robinmalik

Description

@robinmalik

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

Since upgrading to version 2.3.3 on some of our Windows Servers under PS 5.1, the InlinePredictionColor appears as bright white making it look like a fully/already typed command - this is confusing because there's no visual way to tell if the command has been accepted (tab completed) or not without checking the cursor position. The exact value for this property returned by Get-PSReadLineOption is "$([char]0x1b)[97;2;3m". Under 2.2.6 it is "$([char]0x1b)[38;5;238m" (a grey).

I can see from the release notes:

### [2.3.0-beta0] - 2023-03-07
- Change default color for inline prediction to `dim` (#3493)

I'm not sure what this means exactly, but it also seems to conflict with the change?

Screenshot

2.3.3:

image

2.2.6:

image

Environment data

Name                           Value                                                                                                                                                                                                                                          
----                           -----                                                                                                                                                                                                                                          
PSVersion                      5.1.17763.4644                                                                                                                                                                                                                                 
PSEdition                      Desktop                                                                                                                                                                                                                                        
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                                                                                        
BuildVersion                   10.0.17763.4644                                                                                                                                                                                                                                
CLRVersion                     4.0.30319.42000                                                                                                                                                                                                                                
WSManStackVersion              3.0                                                                                                                                                                                                                                            
PSRemotingProtocolVersion      2.3                                                                                                                                                                                                                                            
SerializationVersion           1.1.0.1

Steps to reproduce

Upgrade to 2.3.3

Expected behavior

Dimmed prediction style.

Actual behavior

White text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions