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
12#ifdef __cplusplus
13extern "C" {
14#endif
15
21typedef struct {
22 uint8_t r;
23 uint8_t g;
24 uint8_t b;
26
33
37
39#define GHOSTTY_COLOR_NAMED_BLACK 0
41#define GHOSTTY_COLOR_NAMED_RED 1
43#define GHOSTTY_COLOR_NAMED_GREEN 2
45#define GHOSTTY_COLOR_NAMED_YELLOW 3
47#define GHOSTTY_COLOR_NAMED_BLUE 4
49#define GHOSTTY_COLOR_NAMED_MAGENTA 5
51#define GHOSTTY_COLOR_NAMED_CYAN 6
53#define GHOSTTY_COLOR_NAMED_WHITE 7
55#define GHOSTTY_COLOR_NAMED_BRIGHT_BLACK 8
57#define GHOSTTY_COLOR_NAMED_BRIGHT_RED 9
59#define GHOSTTY_COLOR_NAMED_BRIGHT_GREEN 10
61#define GHOSTTY_COLOR_NAMED_BRIGHT_YELLOW 11
63#define GHOSTTY_COLOR_NAMED_BRIGHT_BLUE 12
65#define GHOSTTY_COLOR_NAMED_BRIGHT_MAGENTA 13
67#define GHOSTTY_COLOR_NAMED_BRIGHT_CYAN 14
69#define GHOSTTY_COLOR_NAMED_BRIGHT_WHITE 15
70
72
88 uint8_t* r,
89 uint8_t* g,
90 uint8_t* b);
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif /* GHOSTTY_VT_COLOR_H */
void ghostty_color_rgb_get(GhosttyColorRgb color, uint8_t *r, uint8_t *g, uint8_t *b)
uint8_t GhosttyColorPaletteIndex
Definition color.h:32
uint8_t g
Definition color.h:23
uint8_t b
Definition color.h:24
uint8_t r
Definition color.h:22