bubbletea
bubbletea copied to clipboard
(v2) feat: support terminal color profiles
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: https://github.com/charmbracelet/bubbletea/pull/1142 Supersedes: https://github.com/charmbracelet/bubbletea/pull/1143