From 9ef5c135e894b2da95940e2556f4df9ce2205552 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 3 Jan 2014 13:19:44 +0100 Subject: Re-organized the host software directory layout --- host/color.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 host/color.h (limited to 'host/color.h') 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 + +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__ -- cgit