All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Colours.h
Go to the documentation of this file.
1 #ifndef COLOURS_H
2 #define COLOURS_H 1
3 
4 /**
5 \addtogroup SiStripDigi SiStripDigi
6 @{
7 */
8 
9 namespace sistrip {
10 
11 // If a terminal doesn't support any colors, comment following line
12 #define TERM_COLOR
13 
14 #ifdef TERM_COLOR
15 
16 #define DBLUE "\x1b[36m"
17 #define DRED "\x1b[31m"
18 #define DYELLOW "\x1b[33m"
19 #define DGREEN "\x1b[32m"
20 #define DUNDERL "\x1b[4m"
21 #define ENDCOLOR "\x1b[m"
22 
23 #else
24 
25 #define DBLUE ""
26 #define DRED ""
27 #define DYELLOW ""
28 #define DGREEN ""
29 #define DUNDERL ""
30 #define ENDCOLOR ""
31 
32 #endif
33 
34 } // Namespace
35 
36 /** @} */
37 
38 #endif // COLOURS_H