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 check for truecolor #14

Merged
merged 1 commit into from
Sep 15, 2023
Merged

Conversation

sunshowers
Copy link
Contributor

  • Support COLORTERM=24bit.
  • As documented at https://github.com/termstandard/colors#checking-for-colorterm, COLORTERM is not sent over the wire with ssh by default. This means that programs that use supports-color don't get truecolor over ssh. To address that, check that TERM ends with either "direct" or "truecolor".

I think the latter check should be "-direct" or "-truecolor", but check_256_color below doesn't check for a hyphen either. Should that be addressed as well?

* Support COLORTERM=24bit.
* As documented at https://github.com/termstandard/colors#checking-for-colorterm, COLORTERM is
  not sent over the wire with ssh by default. This means that programs that use
  supports-color don't get truecolor over ssh. To address that, check that TERM
  ends with either "direct" or "truecolor".

I think the latter check should be "-direct" or "-truecolor", but
`check_256_color` below doesn't check for a hyphen either. Should that be addressed as well?
@zkat
Copy link
Owner

zkat commented Sep 15, 2023

I think this is fine tbh. Thanks!

@zkat zkat merged commit 736c044 into zkat:main Sep 15, 2023
1 check passed
@sunshowers sunshowers deleted the improve-truecolor branch September 15, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants