mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Add two new CellData variants to extract background color values directly from cells. color_palette (10) returns the palette index as a GhosttyColorPaletteIndex and color_rgb (11) returns the RGB components as a GhosttyColorRgb. Both reuse the existing color types from color.h rather than introducing new ones. These are only valid when the cell content_tag is bg_color_palette or bg_color_rgb respectively; querying them with a mismatched tag reads from the wrong union member.