-
Notifications
You must be signed in to change notification settings - Fork 311
Get/Set-PSReadLineOption -Colors improvements #845
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
Comments
The valid keys are documented here - note that you don't specify The output of |
Thanks so much for the fast reply. And here I was genuinely thinking I'd read the documentation (the in-line documentation, at least). 🙂 I suspected I might've had the keys wrong cause I tested with garbage and the cmdlet didn't complain. Perhaps some form of validation would be useful? If I were a better coder I'd submit a PR. Sorry to have troubled you with this, and thanks again! 👍 |
Oh, I think you've found a real issue - the formatting mislead you. I'm keeping the issue open to address the issues you've raised:
|
On a related note, it seems that even after setting all the colours available there are certain elements that still blend into the background (like |
Feel free to open another issue for hard to read text like When the prompt changes to show an error, the |
Closing to track in #3601 |
I feel like I'm missing something obvious but I can't seem to change a handful of colours from their defaults. Specifically:
ContinuationPromptColor
DefaultTokenColor
MemberColor
NumberColor
Other colors like
CommandColor
andCommentColor
seem to accept new values without issue.This isn't the end of the world but as someone who prefers the solarized-light colour scheme the default for
DefaultTokenColor
(in particular) is so close to the background it renders the text invisible.Am I doing something wrong?
Though I've listed Linux below the same is true for me on Windows 10 v1709 (also PowerShell 6.1.2).
All advice very gratefully received. :)
Environment data
PS version: 6.1.2
PSReadline version: 2.0.0-beta3
os: Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
PS file version:
The text was updated successfully, but these errors were encountered: