Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

faho
Copy link
Member

@faho faho commented Aug 17, 2015

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?

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.
@faho
Copy link
Member Author

faho commented Aug 30, 2015

I've now merged this as f71e877 since nobody objected.

@faho faho closed this Aug 30, 2015
@faho faho deleted the linux-colors branch August 30, 2015 16:32
set -g fish_color_operator cyan
set -g fish_color_quote blue
set -g fish_color_autosuggestion yellow
set -g fish_color_valid_path
Copy link
Member

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?

Copy link
Member Author

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.

@pickfire
Copy link
Contributor

It seems that this has broken fish_vi_mode in framebuffer because fish_vi_mode uses bold for the modes. Sorry for the late reply.

@faho
Copy link
Member Author

faho commented Sep 10, 2015

See 40df11b - bold actually works, underlines don't break anything and printing colors is... well, printing not setting.

@pickfire
Copy link
Contributor

That fix the bold, but there is an still error for background.

@faho
Copy link
Member Author

faho commented Sep 10, 2015

I could have sworn that background doesn't work, but apparently it does. See b231ab7.

@pickfire
Copy link
Contributor

_Bingo!_ It is working now.

Good luck and have a nice day!

@faho faho added this to the next-2.x milestone Sep 26, 2015
@faho faho added the release notes Something that is or should be mentioned in the release notes label Oct 26, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement release notes Something that is or should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fish does not work in a TTY session.
3 participants