7#ifndef GHOSTTY_VT_SGR_H
8#define GHOSTTY_VT_SGR_H
59 GHOSTTY_SGR_ATTR_UNSET = 0,
60 GHOSTTY_SGR_ATTR_UNKNOWN = 1,
61 GHOSTTY_SGR_ATTR_BOLD = 2,
62 GHOSTTY_SGR_ATTR_RESET_BOLD = 3,
63 GHOSTTY_SGR_ATTR_ITALIC = 4,
64 GHOSTTY_SGR_ATTR_RESET_ITALIC = 5,
65 GHOSTTY_SGR_ATTR_FAINT = 6,
66 GHOSTTY_SGR_ATTR_UNDERLINE = 7,
67 GHOSTTY_SGR_ATTR_UNDERLINE_COLOR = 8,
68 GHOSTTY_SGR_ATTR_UNDERLINE_COLOR_256 = 9,
69 GHOSTTY_SGR_ATTR_RESET_UNDERLINE_COLOR = 10,
70 GHOSTTY_SGR_ATTR_OVERLINE = 11,
71 GHOSTTY_SGR_ATTR_RESET_OVERLINE = 12,
72 GHOSTTY_SGR_ATTR_BLINK = 13,
73 GHOSTTY_SGR_ATTR_RESET_BLINK = 14,
74 GHOSTTY_SGR_ATTR_INVERSE = 15,
75 GHOSTTY_SGR_ATTR_RESET_INVERSE = 16,
76 GHOSTTY_SGR_ATTR_INVISIBLE = 17,
77 GHOSTTY_SGR_ATTR_RESET_INVISIBLE = 18,
78 GHOSTTY_SGR_ATTR_STRIKETHROUGH = 19,
79 GHOSTTY_SGR_ATTR_RESET_STRIKETHROUGH = 20,
80 GHOSTTY_SGR_ATTR_DIRECT_COLOR_FG = 21,
81 GHOSTTY_SGR_ATTR_DIRECT_COLOR_BG = 22,
82 GHOSTTY_SGR_ATTR_BG_8 = 23,
83 GHOSTTY_SGR_ATTR_FG_8 = 24,
84 GHOSTTY_SGR_ATTR_RESET_FG = 25,
85 GHOSTTY_SGR_ATTR_RESET_BG = 26,
86 GHOSTTY_SGR_ATTR_BRIGHT_BG_8 = 27,
87 GHOSTTY_SGR_ATTR_BRIGHT_FG_8 = 28,
88 GHOSTTY_SGR_ATTR_BG_256 = 29,
89 GHOSTTY_SGR_ATTR_FG_256 = 30,
90 GHOSTTY_SGR_ATTR_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
99 GHOSTTY_SGR_UNDERLINE_NONE = 0,
100 GHOSTTY_SGR_UNDERLINE_SINGLE = 1,
101 GHOSTTY_SGR_UNDERLINE_DOUBLE = 2,
102 GHOSTTY_SGR_UNDERLINE_CURLY = 3,
103 GHOSTTY_SGR_UNDERLINE_DOTTED = 4,
104 GHOSTTY_SGR_UNDERLINE_DASHED = 5,
105 GHOSTTY_SGR_UNDERLINE_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
117 const uint16_t* full_ptr;
119 const uint16_t* partial_ptr;
145 uint64_t _padding[8];
239 const uint16_t* params,
240 const char* separators,
272 const uint16_t** ptr);
288 const uint16_t** ptr);
GHOSTTY_API size_t ghostty_sgr_unknown_partial(GhosttySgrUnknown unknown, const uint16_t **ptr)
GHOSTTY_API size_t ghostty_sgr_unknown_full(GhosttySgrUnknown unknown, const uint16_t **ptr)
GHOSTTY_API void ghostty_sgr_free(GhosttySgrParser parser)
GHOSTTY_API GhosttySgrAttributeValue * ghostty_sgr_attribute_value(GhosttySgrAttribute *attr)
struct GhosttySgrParserImpl * GhosttySgrParser
GHOSTTY_API GhosttyResult ghostty_sgr_set_params(GhosttySgrParser parser, const uint16_t *params, const char *separators, size_t len)
GHOSTTY_API GhosttyResult ghostty_sgr_new(const GhosttyAllocator *allocator, GhosttySgrParser *parser)
uint8_t GhosttyColorPaletteIndex
GHOSTTY_API bool ghostty_sgr_next(GhosttySgrParser parser, GhosttySgrAttribute *attr)
GHOSTTY_API void ghostty_sgr_reset(GhosttySgrParser parser)
GHOSTTY_API GhosttySgrAttributeTag ghostty_sgr_attribute_tag(GhosttySgrAttribute attr)
GHOSTTY_API GhosttySgrAttribute * ghostty_wasm_alloc_sgr_attribute(void)
GHOSTTY_API void ghostty_wasm_free_sgr_attribute(GhosttySgrAttribute *attr)
#define GHOSTTY_ENUM_TYPED