Block-Structured AMR Software Framework
AMReX_ANSIEscCode.H
Go to the documentation of this file.
1 #ifndef AMREX_ANSI_ESC_CODE_H_
2 #define AMREX_ANSI_ESC_CODE_H_
3 
4 // https://en.wikipedia.org/wiki/ANSI_escape_code
5 
6 namespace amrex {
7 
8 constexpr char ResetDisplay[] = "\033[0m";
9 
10 namespace Font {
11  constexpr char Bold [] = "\033[1m";
12  constexpr char Faint [] = "\033[2m";
13  constexpr char Italic [] = "\033[3m";
14  constexpr char Underline [] = "\033[4m";
15  constexpr char SlowBlink [] = "\033[5m";
16  constexpr char RapidBlink [] = "\033[6m";
17 }
18 
19 namespace FGColor { // Foreground colors
20  constexpr char Black [] = "\033[30m";
21  constexpr char Red [] = "\033[31m";
22  constexpr char Green [] = "\033[32m";
23  constexpr char Yellow [] = "\033[33m";
24  constexpr char Blue [] = "\033[34m";
25  constexpr char Magenta [] = "\033[35m";
26  constexpr char Cyan [] = "\033[36m";
27  constexpr char White [] = "\033[37m";
28 
29  constexpr char Gray [] = "\033[90m";
30  constexpr char BrightBlack [] = "\033[90m";
31  constexpr char BrightRed [] = "\033[91m";
32  constexpr char BrightGreen [] = "\033[92m";
33  constexpr char BrightYellow [] = "\033[93m";
34  constexpr char BrightBLUE [] = "\033[94m";
35  constexpr char BrightMagenta [] = "\033[95m";
36  constexpr char BrightCyan [] = "\033[96m";
37  constexpr char BrightWhite [] = "\033[97m";
38 }
39 
40 namespace BGColor { // Background colors
41  constexpr char Black [] = "\033[40m";
42  constexpr char Red [] = "\033[41m";
43  constexpr char Green [] = "\033[42m";
44  constexpr char Yellow [] = "\033[43m";
45  constexpr char Blue [] = "\033[44m";
46  constexpr char Magenta [] = "\033[45m";
47  constexpr char Cyan [] = "\033[46m";
48  constexpr char White [] = "\033[47m";
49 
50  constexpr char Gray [] = "\033[100m";
51  constexpr char BrightBlack [] = "\033[100m";
52  constexpr char BrightRed [] = "\033[101m";
53  constexpr char BrightGreen [] = "\033[102m";
54  constexpr char BrightYellow [] = "\033[103m";
55  constexpr char BrightBlue [] = "\033[104m";
56  constexpr char BrightMagenta [] = "\033[105m";
57  constexpr char BrightCyan [] = "\033[106m";
58  constexpr char BrightWhite [] = "\033[107m";
59 }
60 
61 }
62 
63 #endif
constexpr char White[]
Definition: AMReX_ANSIEscCode.H:48
constexpr char Blue[]
Definition: AMReX_ANSIEscCode.H:45
constexpr char BrightWhite[]
Definition: AMReX_ANSIEscCode.H:58
constexpr char BrightBlue[]
Definition: AMReX_ANSIEscCode.H:55
constexpr char BrightGreen[]
Definition: AMReX_ANSIEscCode.H:53
constexpr char Green[]
Definition: AMReX_ANSIEscCode.H:43
constexpr char Gray[]
Definition: AMReX_ANSIEscCode.H:50
constexpr char Magenta[]
Definition: AMReX_ANSIEscCode.H:46
constexpr char Red[]
Definition: AMReX_ANSIEscCode.H:42
constexpr char BrightRed[]
Definition: AMReX_ANSIEscCode.H:52
constexpr char Yellow[]
Definition: AMReX_ANSIEscCode.H:44
constexpr char BrightMagenta[]
Definition: AMReX_ANSIEscCode.H:56
constexpr char BrightYellow[]
Definition: AMReX_ANSIEscCode.H:54
constexpr char BrightCyan[]
Definition: AMReX_ANSIEscCode.H:57
constexpr char Black[]
Definition: AMReX_ANSIEscCode.H:41
constexpr char BrightBlack[]
Definition: AMReX_ANSIEscCode.H:51
constexpr char Cyan[]
Definition: AMReX_ANSIEscCode.H:47
constexpr char BrightYellow[]
Definition: AMReX_ANSIEscCode.H:33
constexpr char Yellow[]
Definition: AMReX_ANSIEscCode.H:23
constexpr char BrightRed[]
Definition: AMReX_ANSIEscCode.H:31
constexpr char BrightBLUE[]
Definition: AMReX_ANSIEscCode.H:34
constexpr char Cyan[]
Definition: AMReX_ANSIEscCode.H:26
constexpr char Blue[]
Definition: AMReX_ANSIEscCode.H:24
constexpr char BrightGreen[]
Definition: AMReX_ANSIEscCode.H:32
constexpr char Gray[]
Definition: AMReX_ANSIEscCode.H:29
constexpr char Magenta[]
Definition: AMReX_ANSIEscCode.H:25
constexpr char BrightCyan[]
Definition: AMReX_ANSIEscCode.H:36
constexpr char White[]
Definition: AMReX_ANSIEscCode.H:27
constexpr char BrightMagenta[]
Definition: AMReX_ANSIEscCode.H:35
constexpr char BrightWhite[]
Definition: AMReX_ANSIEscCode.H:37
constexpr char BrightBlack[]
Definition: AMReX_ANSIEscCode.H:30
constexpr char Red[]
Definition: AMReX_ANSIEscCode.H:21
constexpr char Green[]
Definition: AMReX_ANSIEscCode.H:22
constexpr char Black[]
Definition: AMReX_ANSIEscCode.H:20
constexpr char SlowBlink[]
Definition: AMReX_ANSIEscCode.H:15
constexpr char Italic[]
Definition: AMReX_ANSIEscCode.H:13
constexpr char Underline[]
Definition: AMReX_ANSIEscCode.H:14
constexpr char Bold[]
Definition: AMReX_ANSIEscCode.H:11
constexpr char RapidBlink[]
Definition: AMReX_ANSIEscCode.H:16
constexpr char Faint[]
Definition: AMReX_ANSIEscCode.H:12
Definition: AMReX_Amr.cpp:49
constexpr char ResetDisplay[]
Definition: AMReX_ANSIEscCode.H:8