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

ChafaTermDb: Eat advertises color support via TERM #199

Merged
merged 1 commit into from Apr 20, 2024

Conversation

sfllaw
Copy link
Contributor

@sfllaw sfllaw commented Apr 18, 2024

The Eat terminal advertises its color support by setting its TERM to:

  • eat-truecolor when it supports more than 256 colors,
  • eat-256color when it supports more than 16 colors,
  • eat-16color when it supports more than 8 colors,
  • eat-color when it supports more than 1 color,
  • eat-mono when it supports no colors.

Note that eat-16color isn't actually supported yet, but a bug has been filed upstream: https://codeberg.org/akib/emacs-eat/issues/154

@sfllaw sfllaw marked this pull request as ready for review April 18, 2024 23:06
@sfllaw
Copy link
Contributor Author

sfllaw commented Apr 18, 2024

@hpjansson I think this patch is ready to be reviewed. I will work with Eat to support 16-color mode, so I have built that detection into this PR.

@sfllaw sfllaw requested a review from hpjansson April 18, 2024 23:44
@hpjansson
Copy link
Owner

Looks good to commit once the minor conflict with the sixel PR is resolved.

The Eat terminal advertises its color support by setting its TERM to:
* eat-truecolor when it supports more than 256 colors,
* eat-256color when it supports more than 16 colors,
* eat-16color when it supports more than 8 colors,
* eat-color when it supports more than 1 color,
* eat-mono when it supports no colors.

Note that eat-16color isn't actually supported yet, but a bug has been
filed upstream: https://codeberg.org/akib/emacs-eat/issues/154
@sfllaw
Copy link
Contributor Author

sfllaw commented Apr 19, 2024

Rebased and tested.

image

@hpjansson
Copy link
Owner

Thanks!

@hpjansson hpjansson merged commit dc17c01 into hpjansson:master Apr 20, 2024
1 check passed
@sfllaw sfllaw deleted the eat-terminal-color branch April 20, 2024 19:34
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.

None yet

2 participants