-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Can't see what I type ("-", "%", etc are not displayed) #6424
Comments
I cannot recommend the solarized color scheme. The defaults in PowerShell do not interact with it properly. I recommend choosing literally any other theme. Sorry! |
@DHowett No can do: all other schemes are literally wrong 😜. (I was also not asking for a recommendation: I was pointing out a real bug.) Joke aside: Cmder works just fine with the same scheme in powershell: Any workarounds I can do right now to make it work like forcing the console foreground color? Please re-open the issue: if you don't/can't support solarized, please remove the theme (using this bug to track). If you can fix it, please use this issue to track the resolution. |
(I’m assigning myself to fill in the discussion and handle this bug when I’m not on my phone.) |
So, there's a few issues at play here.
(1)
This will actually force parameters/operators to be gray. Real gray. The way they were intended. It's equally unreadable on the standard Solarized Dark background, but it is at the very least visible. |
Correction above: `e works only for PS running on .NET Core. From #5896 (comment) if ($IsCoreCLR) {
$esc = "`e"
}
else {
$esc = $([char]0x1b)
}
Set-PSReadLineOption -Colors @{
Parameter = "$esc[96m"
Operator = "$esc[38;5;47m"
comment = "$esc[92m"
String = "$esc[38;5;51m"
} |
Environment
Steps to reproduce
Enter
git -m "123"
Enter
test -- -- -- -- -- -- -- -- -- --
Expected behavior
I expect to see what I typed.
Actual behavior
The text was updated successfully, but these errors were encountered: