Prerequisites
Exception report
Screenshot


Environment data
PS Version: 5.1.19041.1645
PS HostName: ConsoleHost
PSReadLine Version: 2.2.2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 106
BufferHeight: 3000
Steps to reproduce
Happens on PS 5.1 console and Windows Terminal app (cannot reproduce with the ISE nor PowerShell 7.2.2)
To reproduce:
- Type
Get-PSReadlineOption | Format-List *
To resolve:
- Type
Get-PSReadLineOption (without | Format-List *) and color scheme is restored after the property CommandColor is listed on-screen. See bottom screenshot for a better explanation of this.
Expected behavior
Color scheme should remain constant
Actual behavior
- Console color scheme now appears like the
ListPredictionSelectedColor color scheme
- Missing property values (see screenshot)
- Clearing the screen/changing console size doesn't resolve the issue.
Prerequisites
Exception report
N/AScreenshot
Environment data
Steps to reproduce
Happens on PS 5.1 console and Windows Terminal app (cannot reproduce with the ISE nor PowerShell 7.2.2)
To reproduce:
Get-PSReadlineOption | Format-List *To resolve:
Get-PSReadLineOption(without| Format-List *) and color scheme is restored after the propertyCommandColoris listed on-screen. See bottom screenshot for a better explanation of this.Expected behavior
Color scheme should remain constant
Actual behavior
ListPredictionSelectedColorcolor scheme