Arduino Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
color.hpp
Go to the documentation of this file.
1 // Author: Mario S. Könz <mskoenz@gmx.net>
2 // Date: 25.04.2013 18:09:04 EDT
3 // File: color.hpp
4 
5 #ifndef __COLOR_HEADER
6 #define __COLOR_HEADER
7 
8 #ifndef NO_COLOR
9 
10 #define CLRSCR "\033[2J\033[100A"
11 #define BLACK "\033[0;30m"
12 #define BLACKB "\033[1;30m"
13 #define RED "\033[0;31m"
14 #define REDB "\033[1;31m"
15 #define GREEN "\033[0;32m"
16 #define GREENB "\033[1;32m"
17 #define YELLOW "\033[0;33m"
18 #define YELLOWB "\033[1;33m"
19 #define BLUE "\033[0;34m"
20 #define BLUEB "\033[1;34m"
21 #define MAGENTA "\033[0;35m"
22 #define MAGENTAB "\033[1;35m"
23 #define CYAN "\033[0;36m"
24 #define CYANB "\033[1;36m"
25 #define WHITE "\033[0;37m"
26 #define WHITEB "\033[1;37m"
27 
28 #define BLACKBG "\033[0;40m"
29 #define REDBG "\033[0;41m"
30 #define GREENBG "\033[0;42m"
31 #define YELLOWBG "\033[0;43m"
32 #define BLUEBG "\033[0;44m"
33 #define MAGENTABG "\033[0;45m"
34 #define CYANBG "\033[0;46m"
35 #define WHITEBG "\033[0;47m"
36 
37 #define NONE "\033[0m"
38 
39 #else //NO_COLOR
40 
41 #define CLRSCR ""
42 
43 #define BLACK ""
44 #define BLACKB ""
45 #define RED ""
46 #define REDB ""
47 #define GREEN ""
48 #define GREENB ""
49 #define YELLOW ""
50 #define YELLOWB ""
51 #define BLUE ""
52 #define BLUEB ""
53 #define MAGENTA ""
54 #define MAGENTAB ""
55 #define CYAN ""
56 #define CYANB ""
57 #define WHITE ""
58 #define WHITEB ""
59 
60 #define BLACKBG ""
61 #define REDBG ""
62 #define GREENBG ""
63 #define YELLOWBG ""
64 #define BLUEBG ""
65 #define MAGENTABG ""
66 #define CYANBG ""
67 #define WHITEBG ""
68 
69 #define NONE ""
70 
71 #endif //NO_COLOR
72 
73 #endif //__COLOR_HEADER