![]()  | 
  
    libghostty
    
   | 
 
#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.
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.