My Project
color.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_COLOR_HPP
29 #define BSL_COLOR_HPP
30 
31 #include "cstr_type.hpp"
32 
33 namespace bsl
34 {
36  constexpr cstr_type reset_color{"\033[0m"};
37 
39  constexpr cstr_type black{"\033[0;90m"};
41  constexpr cstr_type red{"\033[0;91m"};
43  constexpr cstr_type green{"\033[0;92m"};
45  constexpr cstr_type yellow{"\033[0;93m"};
47  constexpr cstr_type blue{"\033[0;94m"};
49  constexpr cstr_type magenta{"\033[0;95m"};
51  constexpr cstr_type cyan{"\033[0;96m"};
53  constexpr cstr_type white{"\033[0;97m"};
54 
56  constexpr cstr_type bold_black{"\033[1;90m"};
58  constexpr cstr_type bold_red{"\033[1;91m"};
60  constexpr cstr_type bold_green{"\033[1;92m"};
62  constexpr cstr_type bold_yellow{"\033[1;93m"};
64  constexpr cstr_type bold_blue{"\033[1;94m"};
66  constexpr cstr_type bold_magenta{"\033[1;95m"};
68  constexpr cstr_type bold_cyan{"\033[1;96m"};
70  constexpr cstr_type bold_white{"\033[1;97m"};
71 }
72 
73 #endif
constexpr cstr_type reset_color
resets the color output of debug statements
Definition: color.hpp:36
constexpr cstr_type bold_white
changes the foreground color to bold white
Definition: color.hpp:70
constexpr cstr_type bold_red
changes the foreground color to bold red
Definition: color.hpp:58
constexpr cstr_type magenta
changes the foreground color to normal magenta
Definition: color.hpp:49
constexpr cstr_type bold_cyan
changes the foreground color to bold cyan
Definition: color.hpp:68
constexpr cstr_type white
changes the foreground color to normal white
Definition: color.hpp:53
char const * cstr_type
C-style string type.
Definition: cstr_type.hpp:39
constexpr cstr_type yellow
changes the foreground color to normal yellow
Definition: color.hpp:45
constexpr cstr_type bold_magenta
changes the foreground color to bold magenta
Definition: color.hpp:66
constexpr cstr_type red
changes the foreground color to normal red
Definition: color.hpp:41
constexpr cstr_type bold_yellow
changes the foreground color to bold yellow
Definition: color.hpp:62
constexpr cstr_type bold_green
changes the foreground color to bold green
Definition: color.hpp:60
constexpr cstr_type bold_blue
changes the foreground color to bold blue
Definition: color.hpp:64
constexpr cstr_type blue
changes the foreground color to normal blue
Definition: color.hpp:47
constexpr cstr_type black
changes the foreground color to normal black
Definition: color.hpp:39
constexpr cstr_type green
changes the foreground color to normal green
Definition: color.hpp:43
constexpr cstr_type bold_black
changes the foreground color to bold black
Definition: color.hpp:56
constexpr cstr_type cyan
changes the foreground color to normal cyan
Definition: color.hpp:51