-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Improve situation for linux in-kernel VTs (TERM = "linux") #2311
Conversation
This adds a special colorscheme and prompt function guaranteed to work on a VT and activates them automatically if $TERM = "linux". set_color is overridden to only allow the 8 colors VTs have (under the assumption those are always the same) and the color variables are shadowed with global ones so they don't pollute our nice capable terms.
I've now merged this as f71e877 since nobody objected. |
set -g fish_color_operator cyan | ||
set -g fish_color_quote blue | ||
set -g fish_color_autosuggestion yellow | ||
set -g fish_color_valid_path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there supposed to be an argument here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There probably should be. The default happens to not break, though.
It seems that this has broken |
See 40df11b - bold actually works, underlines don't break anything and printing colors is... well, printing not setting. |
That fix the bold, but there is an still error for background. |
I could have sworn that background doesn't work, but apparently it does. See b231ab7. |
_Bingo!_ It is working now. Good luck and have a nice day! |
This adds a special colorscheme and prompt function (a clone of the "classic" prompt) guaranteed to work
on a VT and activates them automatically if $TERM = "linux".
set_color is overridden to only allow the 8 colors VTs have (under the
assumption those are always the same) and the color variables are
shadowed with global ones so they don't pollute our nice capable terms.
Fixes #2070.
Everyone okay with the approach or should we bend over backwards even harder?