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 GHOSTTY_ENUM_TYPED {
50 GHOSTTY_STYLE_COLOR_NONE = 0,
51 GHOSTTY_STYLE_COLOR_PALETTE = 1,
52 GHOSTTY_STYLE_COLOR_RGB = 2,
53 GHOSTTY_STYLE_COLOR_TAG_MAX_VALUE = GHOSTTY_ENUM_MAX_VALUE,
55
63typedef union {
66 uint64_t _padding;
68
77typedef struct {
81
94typedef struct {
95 size_t size;
96 GhosttyStyleColor fg_color;
97 GhosttyStyleColor bg_color;
98 GhosttyStyleColor underline_color;
99 bool bold;
100 bool italic;
101 bool faint;
102 bool blink;
103 bool inverse;
104 bool invisible;
105 bool strikethrough;
106 bool overline;
109
119GHOSTTY_API void ghostty_style_default(GhosttyStyle* style);
120
131GHOSTTY_API bool ghostty_style_is_default(const GhosttyStyle* style);
132
133#ifdef __cplusplus
134}
135#endif
136
138
139#endif /* GHOSTTY_VT_STYLE_H */
uint8_t GhosttyColorPaletteIndex
Definition color.h:33
uint16_t GhosttyStyleId
Definition style.h:39
GhosttyStyleColorTag
Definition style.h:49
GHOSTTY_API bool ghostty_style_is_default(const GhosttyStyle *style)
GHOSTTY_API void ghostty_style_default(GhosttyStyle *style)
int underline
Definition style.h:107
#define GHOSTTY_ENUM_TYPED
Definition types.h:67