RawUI & PrivateData: Console Colors are broken? #556

Open
opened 2026-01-30 21:55:12 +00:00 by claunia · 0 comments
Owner

Originally created by @JontuKontar on GitHub (Feb 13, 2019).

When using (Get-Host).PrivateData or (Get-Host).UI.RawUI to set Console Colors, they only exist when the console is opened.

Typed text is not bound to them nor do the properties of PrivateData or RawUI indicate that they are properly set. (Clear-Host, effectively removes all changes from the Console.)

Enabling "Use Legacy Console" restores expected function.

Not sure if there is something else I should be doing to make the color changes stick with the "Modern Console" or if this is a legitimate bug in the way console colors are applied to the Console.

Originally created by @JontuKontar on GitHub (Feb 13, 2019). When using `(Get-Host).PrivateData` or `(Get-Host).UI.RawUI` to set Console Colors, they only exist when the console is opened. Typed text is not bound to them nor do the properties of `PrivateData` or `RawUI` indicate that they are properly set. (`Clear-Host`, effectively removes all changes from the Console.) Enabling "Use Legacy Console" restores expected function. Not sure if there is something else I should be doing to make the color changes stick with the "Modern Console" or if this is a legitimate bug in the way console colors are applied to the Console.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#556