diff options
Diffstat (limited to 'host/color.h')
-rw-r--r-- | host/color.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/host/color.h b/host/color.h new file mode 100644 index 0000000..48f325b --- /dev/null +++ b/host/color.h @@ -0,0 +1,21 @@ +#ifndef __COLOR_H__ +#define __COLOR_H__ + +#include <stdint.h> + +typedef struct { + uint8_t r; + uint8_t g; + uint8_t b; +} color_t; + +int xterm_color_index(color_t c); + +// gray +#define DEFAULT_FG_COLOR 7 +// black +#define DEFAULT_BG_COLOR 0 + +extern color_t colortable[256]; + +#endif//__COLOR_H__ |