aboutsummaryrefslogtreecommitdiff
path: root/host/matelight/color.h
blob: 48f325bc279a0d228d2264be33942fe86ad240c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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__