Skip to content

core: preserve terminal color intent#844

Open
simonklee wants to merge 1 commit intomainfrom
rgbaa-indexed-squashed
Open

core: preserve terminal color intent#844
simonklee wants to merge 1 commit intomainfrom
rgbaa-indexed-squashed

Conversation

@simonklee
Copy link
Copy Markdown
Member

@simonklee simonklee commented Mar 20, 2026

Flattening indexed and default colors into RGBA snapshots makes palette-relative roles lose meaning before the renderer sees them. Carry a color tag alongside RGBA through the TS, FFI, buffer, and native renderer, and publish the active terminal palette so the renderer can emit 39/49, keep 38;5 slots stable, and remap RGB fallback after palette changes instead of reusing stale indices

Flattening indexed and default colors into RGBA snapshots makes
palette-relative roles lose meaning before the renderer sees them.
Carry a color tag alongside RGBA through the TS, FFI, buffer, and
native renderer, and publish the active terminal palette with
epoch invalidation so the renderer can emit 39/49, keep
38;5 slots stable, and remap RGB fallback after palette changes
instead of reusing stale indices

Co-authored-by:  Trim Bresilla <trim.bresilla@gmail.com>
@simonklee simonklee force-pushed the rgbaa-indexed-squashed branch from ad0d684 to 8ea7e37 Compare April 3, 2026 14:25
@jahooma
Copy link
Copy Markdown

jahooma commented Apr 12, 2026

Awesome work, can't wait to see this merged. opentui is great!

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