diff options
author | jaseg <jaseg@jaseg.net> | 2014-01-03 13:19:44 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2014-01-03 13:19:44 +0100 |
commit | 9ef5c135e894b2da95940e2556f4df9ce2205552 (patch) | |
tree | 3e6538ec4ac69caa9f4db16dad36265fcf5637eb /host/color.h | |
parent | 3fd92ee838b39de097ce2b03ebdd37659708e157 (diff) | |
download | matelight-9ef5c135e894b2da95940e2556f4df9ce2205552.tar.gz matelight-9ef5c135e894b2da95940e2556f4df9ce2205552.tar.bz2 matelight-9ef5c135e894b2da95940e2556f4df9ce2205552.zip |
Re-organized the host software directory layout
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__ |