libghostty
Loading...
Searching...
No Matches
style.h
Go to the documentation of this file.
1
6
7#ifndef GHOSTTY_VT_STYLE_H
8#define GHOSTTY_VT_STYLE_H
9
10#include <ghostty/vt/color.h>
11#include <ghostty/vt/types.h>
12#include <stdbool.h>
13#include <stddef.h>
14#include <stdint.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
30
39typedef uint16_t GhosttyStyleId;
40
49typedef enum {
50 GHOSTTY_STYLE_COLOR_NONE = 0,
51 GHOSTTY_STYLE_COLOR_PALETTE = 1,
52 GHOSTTY_STYLE_COLOR_RGB = 2,
54
62typedef union {
65 uint64_t _padding;
67
76typedef struct {
80
93typedef struct {
94 size_t size;
95 GhosttyStyleColor fg_color;
96 GhosttyStyleColor bg_color;
97 GhosttyStyleColor underline_color;
98 bool bold;
99 bool italic;
100 bool faint;
101 bool blink;
102 bool inverse;
103 bool invisible;
104 bool strikethrough;
105 bool overline;
108
119
131
132#ifdef __cplusplus
133}
134#endif
135
137
138#endif /* GHOSTTY_VT_STYLE_H */
uint8_t GhosttyColorPaletteIndex
Definition color.h:32
bool ghostty_style_is_default(const GhosttyStyle *style)
uint16_t GhosttyStyleId
Definition style.h:39
GhosttyStyleColorTag
Definition style.h:49
void ghostty_style_default(GhosttyStyle *style)
int underline
Definition style.h:106