![]() |
libghostty-vt 0.0.0
|
#include <ghostty/vt/sgr.h>
SGR attribute (tagged union).
A complete SGR attribute with both its type tag and associated value. Always check the tag field to determine which value union member is valid.
The parser handles SGR color attributes including 8-color, 16-color, 256-color, direct RGB, underline color, and reset forms. Color values use the shared Colors types.
Attributes without associated data (e.g., GHOSTTY_SGR_ATTR_BOLD) can be identified by tag alone; the value union is not used for these and the memory in the value field is undefined.