libghostty-vt 0.0.0
Loading...
Searching...
No Matches
GhosttySgrAttribute Struct Reference

#include <ghostty/vt/sgr.h>

Detailed Description

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.

Examples
c-vt-sgr/src/main.c.

Definition at line 156 of file sgr.h.


The documentation for this struct was generated from the following file: