blob: 066c9d376c81feaeb73a8f5c3dc9c20fdb0cd1bc (
plain)
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
|
#pragma once
namespace crepe::util::color {
constexpr const char * RESET = "\e[0m";
constexpr const char * FG_BLACK = "\e[30m";
constexpr const char * FG_RED = "\e[31m";
constexpr const char * FG_GREEN = "\e[32m";
constexpr const char * FG_YELLOW = "\e[33m";
constexpr const char * FG_BLUE = "\e[34m";
constexpr const char * FG_MAGENTA = "\e[35m";
constexpr const char * FG_CYAN = "\e[36m";
constexpr const char * FG_WHITE = "\e[37m";
constexpr const char * BG_BLACK = "\e[40m";
constexpr const char * BG_RED = "\e[41m";
constexpr const char * BG_GREEN = "\e[42m";
constexpr const char * BG_YELLOW = "\e[43m";
constexpr const char * BG_BLUE = "\e[44m";
constexpr const char * BG_MAGENTA = "\e[45m";
constexpr const char * BG_CYAN = "\e[46m";
constexpr const char * BG_WHITE = "\e[47m";
constexpr const char * FG_BLACK_BRIGHT = "\e[90m";
constexpr const char * FG_RED_BRIGHT = "\e[91m";
constexpr const char * FG_GREEN_BRIGHT = "\e[92m";
constexpr const char * FG_YELLOW_BRIGHT = "\e[93m";
constexpr const char * FG_BLUE_BRIGHT = "\e[94m";
constexpr const char * FG_MAGENTA_BRIGHT = "\e[95m";
constexpr const char * FG_CYAN_BRIGHT = "\e[96m";
constexpr const char * FG_WHITE_BRIGHT = "\e[97m";
constexpr const char * BG_BLACK_BRIGHT = "\e[100m";
constexpr const char * BG_RED_BRIGHT = "\e[101m";
constexpr const char * BG_GREEN_BRIGHT = "\e[102m";
constexpr const char * BG_YELLOW_BRIGHT = "\e[103m";
constexpr const char * BG_BLUE_BRIGHT = "\e[104m";
constexpr const char * BG_MAGENTA_BRIGHT = "\e[105m";
constexpr const char * BG_CYAN_BRIGHT = "\e[106m";
constexpr const char * BG_WHITE_BRIGHT = "\e[107m";
} // namespace crepe::util::color
|