-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors.h
73 lines (67 loc) · 1.94 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef __COLOR__
#define __COLOR__ 0xFFFF
#endif
#ifndef __BASE_CAT__
#include <string>
using std::string;
#endif
#ifndef _GLIBCXX_MAP
#include <map>
#endif
namespace colors {
string PURPLE = "\033[95m";
string BLUE = "\033[94m";
string OKCYAN = "\033[96m";
string GREEN = "\033[92m";
string DARKGREEN = "\033[32m";
string YELLOW = "\033[93m";
string RED = "\033[91m";
string ENDC = "\033[0m";
string BOLD = "\033[1m";
string UNDERLINE = "\033[4m";
string WHITE = "\033[97m";
string GREY = "\033[30m";
string DEFAULT = colors::OKCYAN;
std::map<int, std::string> IScodes = {
{1, colors::PURPLE },
{2, colors::BLUE },
{3, colors::OKCYAN },
{4, colors::GREEN },
{5, colors::DARKGREEN },
{6, colors::YELLOW },
{7, colors::RED },
{8, colors::ENDC },
{9, colors::BOLD },
{10, colors::UNDERLINE },
{11, colors::WHITE },
{12, colors::GREY },
};
std::map<std::string, std::string> SScodes = {
{"1", colors::PURPLE },
{"2", colors::BLUE },
{"3", colors::OKCYAN },
{"4", colors::GREEN },
{"5", colors::DARKGREEN },
{"6", colors::YELLOW },
{"7", colors::RED },
{"8", colors::ENDC },
{"9", colors::BOLD },
{"10", colors::UNDERLINE },
{"11", colors::WHITE },
{"12", colors::GREY },
};
std::map<std::string, int> SIcodes = {
{ "PURPLE", 1},
{ "BLUE", 2},
{ "OKCYAN", 3},
{ "GREEN", 4},
{ "DARKGREEN", 5},
{ "YELLOW", 6},
{ "RED", 7},
{ "ENDC", 8},
{ "BOLD", 9},
{ "UNDERLINE", 10},
{ "WHITE", 11},
{ "GREY", 12}
};
};