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

(v2) feat: support terminal color profiles #1151

Merged
merged 8 commits into from
Oct 29, 2024
Merged

Conversation

aymanbagabas
Copy link
Member

This adds support for detecting the terminal's color profile. It adds a new ColorProfileMsg message that get sent when the program starts. You can force a specific color profile using the WithColorProfile option.

When a program requests the RGB or Tc terminfo capabilities, Bubble Tea will read the response, if there is one, and upgrade the cached color profile and send the new profile to the program again.

Supersedes: #1142
Supersedes: #1143

This adds support for detecting the terminal's color profile. It adds a
new `ColorProfileMsg` message that get sent when the program starts. You
can force a specific color profile using the `WithColorProfile` option.

When a program requests the `RGB` or `Tc` terminfo capabilities, Bubble
Tea will read the response, if there is one, and upgrade the cached
color profile and send the new profile to the program again.

Supersedes: #1142
Supersedes: #1143
@aymanbagabas aymanbagabas changed the title feat: support terminal color profiles (v2) feat: support terminal color profiles Sep 16, 2024
@aymanbagabas aymanbagabas force-pushed the v2-exp branch 3 times, most recently from d2bffc5 to 84b68c5 Compare September 20, 2024 20:09
@aymanbagabas aymanbagabas merged commit 94b7873 into v2-exp Oct 29, 2024
38 checks passed
@aymanbagabas aymanbagabas deleted the v2-colorprofile branch October 29, 2024 00:36
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