otsdaq  v2_05_02_indev
ANSIColors.h
1 /*===============================================================================
2  * Monicelli: the FERMILAB MTEST geometry builder and track reconstruction tool
3  *
4  * Copyright (C) 2014
5  *
6  * Authors:
7  *
8  * Dario Menasce (INFN)
9  * Luigi Moroni (INFN)
10  * Jennifer Ngadiuba (INFN)
11  * Stefano Terzo (INFN)
12  * Lorenzo Uplegger (FNAL)
13  * Luigi Vigani (INFN)
14  *
15  * INFN: Piazza della Scienza 3, Edificio U2, Milano, Italy 20126
16  *
17  * This program is free software: you can redistribute it and/or modify
18  * it under the terms of the GNU General Public License as published by
19  * the Free Software Foundation, either version 3 of the License, or
20  * (at your option) any later version.
21  *
22  * This program is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  * GNU General Public License for more details.
26  *
27  * You should have received a copy of the GNU General Public License
28  * along with this program. If not, see <http://www.gnu.org/licenses/>.
29  ================================================================================*/
30 
31 #ifndef _ANSICOLORS_H
32 #define _ANSICOLORS_H
33 
34 #include <iostream>
35 #include <sstream>
36 
52 #define ACBlack "\x1B[0;30m"
53 #define ACBlue "\x1B[0;34m"
54 #define ACGreen "\x1B[0;32m"
55 #define ACCyan "\x1B[0;36m"
56 #define ACRed "\x1B[0;31m"
57 #define ACPurple "\x1B[0;35m"
58 #define ACBrown "\x1B[0;33m"
59 #define ACGray "\x1B[0;37m"
60 #define ACDarkGray "\x1B[1;30m"
61 #define ACLightBlue "\x1B[1;34m"
62 #define ACLightGreen "\x1B[1;32m"
63 #define ACLightCyan "\x1B[1;36m"
64 #define ACLightRed "\x1B[1;31m"
65 #define ACLightPurple "\x1B[1;35m"
66 #define ACYellow "\x1B[1;33m"
67 #define ACWhite "\x1B[1;37m"
68 
69 #define ACPlain "\x1B[0m"
70 #define ACBold "\x1B[1m"
71 #define ACUnderline "\x1B[4m"
72 #define ACBlink "\x1B[5m"
73 #define ACReverse "\x1B[7m"
74 
75 #define ACClear "\x1B[2J"
76 #define ACClearL "\x1B[2K"
77 
78 #define ACCR " \r"
79 
80 #define ACSave "\x1B[s"
81 #define ACRecall "\x1B[u"
82 
83 #endif // _ANSICOLORS_H