libghostty
Loading...
Searching...
No Matches
color.h
Go to the documentation of this file.
1
6
7#ifndef GHOSTTY_VT_COLOR_H
8#define GHOSTTY_VT_COLOR_H
9
10#include <stdint.h>
11#include <ghostty/vt/types.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
22typedef struct {
23 uint8_t r;
24 uint8_t g;
25 uint8_t b;
27
34
38
40#define GHOSTTY_COLOR_NAMED_BLACK 0
42#define GHOSTTY_COLOR_NAMED_RED 1
44#define GHOSTTY_COLOR_NAMED_GREEN 2
46#define GHOSTTY_COLOR_NAMED_YELLOW 3
48#define GHOSTTY_COLOR_NAMED_BLUE 4
50#define GHOSTTY_COLOR_NAMED_MAGENTA 5
52#define GHOSTTY_COLOR_NAMED_CYAN 6
54#define GHOSTTY_COLOR_NAMED_WHITE 7
56#define GHOSTTY_COLOR_NAMED_BRIGHT_BLACK 8
58#define GHOSTTY_COLOR_NAMED_BRIGHT_RED 9
60#define GHOSTTY_COLOR_NAMED_BRIGHT_GREEN 10
62#define GHOSTTY_COLOR_NAMED_BRIGHT_YELLOW 11
64#define GHOSTTY_COLOR_NAMED_BRIGHT_BLUE 12
66#define GHOSTTY_COLOR_NAMED_BRIGHT_MAGENTA 13
68#define GHOSTTY_COLOR_NAMED_BRIGHT_CYAN 14
70#define GHOSTTY_COLOR_NAMED_BRIGHT_WHITE 15
71
73
89 uint8_t* r,
90 uint8_t* g,
91 uint8_t* b);
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif /* GHOSTTY_VT_COLOR_H */
GHOSTTY_API void ghostty_color_rgb_get(GhosttyColorRgb color, uint8_t *r, uint8_t *g, uint8_t *b)
uint8_t GhosttyColorPaletteIndex
Definition color.h:33
uint8_t g
Definition color.h:24
uint8_t b
Definition color.h:25
uint8_t r
Definition color.h:23