-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline Prediction Colour is white/not dim after 2.3.3 upgrade. #3805
Comments
Hi @robinmalik thanks for pointing this out! Turns out that conhost on Windows 10 does not support the dimming and italic font effect and makes it only white. I suggest trying to use Windows PowerShell in latest Windows terminal version and it should be fixed. |
Apologies forgot Windows Terminal is not installed by default on Windows Server, you can change the prediction color back to old color with this command:
I suggest putting this command your profile or just disabling predictions by running |
Appreciate the one liner fix - a LOT of people using Powershell 7 in Windows Terminal these days though. |
@StevenBucher98 Thanks Steven. I'll await the fix to resolve this (I wish Terminal was available for Windows Server!). |
Prerequisites
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:
I'm not sure what this means exactly, but it also seems to conflict with the change?
Screenshot
2.3.3:
2.2.6:
Environment data
Steps to reproduce
Upgrade to 2.3.3
Expected behavior
Dimmed prediction style.
Actual behavior
White text.
The text was updated successfully, but these errors were encountered: