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

Open
wants to merge 3 commits into
base: v2-exp
Choose a base branch
from

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
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.

1 participant