bubbletea icon indicating copy to clipboard operation
bubbletea copied to clipboard

(v2) feat: support terminal color profiles

Open aymanbagabas opened this issue 5 months ago • 0 comments

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

aymanbagabas avatar Sep 16 '24 21:09 aymanbagabas