-
Notifications
You must be signed in to change notification settings - Fork 0
/
colors.h
38 lines (32 loc) · 1.25 KB
/
colors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef __COLORS_H__
#define __COLORS_H__
/* Definicion de colores */
/* -------------------------------------------------------------------------- */
#define C_FG_BLACK (0x0)
#define C_FG_BLUE (0x1)
#define C_FG_GREEN (0x2)
#define C_FG_CYAN (0x3)
#define C_FG_RED (0x4)
#define C_FG_MAGENTA (0x5)
#define C_FG_BROWN (0x6)
#define C_FG_LIGHT_GREY (0x7)
#define C_FG_DARK_GREY (0x8)
#define C_FG_LIGHT_BLUE (0x9)
#define C_FG_LIGHT_GREEN (0xA)
#define C_FG_LIGHT_CYAN (0xB)
#define C_FG_LIGHT_RED (0xC)
#define C_FG_LIGHT_MAGENTA (0xD)
#define C_FG_LIGHT_BROWN (0xE)
#define C_FG_WHITE (0xF)
#define C_BG_BLACK (0x0 << 4)
#define C_BG_BLUE (0x1 << 4)
#define C_BG_GREEN (0x2 << 4)
#define C_BG_CYAN (0x3 << 4)
#define C_BG_RED (0x4 << 4)
#define C_BG_MAGENTA (0x5 << 4)
#define C_BG_BROWN (0x6 << 4)
#define C_BG_LIGHT_GREY (0x7 << 4)
#define C_BLINK (0x8 << 4)
#define C_BW (C_FG_WHITE | C_BG_BLACK)
#define C_MAKE_BG(x) (x << 4)
#endif /* !__COLORS_H__ */