15 #ifndef OPENSCENARIO_INTERPRETER__CONSOLE__ESCAPE_SEQUENCE_HPP_
16 #define OPENSCENARIO_INTERPRETER__CONSOLE__ESCAPE_SEQUENCE_HPP_
23 inline namespace console
25 template <
typename... Ts>
28 return is_console(os) ? (os <<
"\x1b" << code) : os;
31 #define BOILERPLATE(CODE, NAME) \
32 inline auto NAME = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, CODE); }
44 inline namespace foreground
#define BOILERPLATE(CODE, NAME)
Definition: escape_sequence.hpp:31
auto white
Definition: escape_sequence.hpp:65
auto red
Definition: escape_sequence.hpp:59
auto green
Definition: escape_sequence.hpp:60
auto yellow
Definition: escape_sequence.hpp:61
auto cyan
Definition: escape_sequence.hpp:64
auto blue
Definition: escape_sequence.hpp:62
auto magenta
Definition: escape_sequence.hpp:63
auto black
Definition: escape_sequence.hpp:58
auto blue
Definition: escape_sequence.hpp:50
auto yellow
Definition: escape_sequence.hpp:49
auto red
Definition: escape_sequence.hpp:47
auto magenta
Definition: escape_sequence.hpp:51
auto black
Definition: escape_sequence.hpp:46
auto green
Definition: escape_sequence.hpp:48
auto cyan
Definition: escape_sequence.hpp:52
auto white
Definition: escape_sequence.hpp:53
auto slow_blink
Definition: escape_sequence.hpp:39
auto rapid_blink
Definition: escape_sequence.hpp:40
auto reset
Definition: escape_sequence.hpp:34
auto underline
Definition: escape_sequence.hpp:38
auto conceal
Definition: escape_sequence.hpp:42
auto & escape_sequence(std::basic_ostream< Ts... > &os, const std::string &code)
Definition: escape_sequence.hpp:26
auto faint
Definition: escape_sequence.hpp:36
auto italic
Definition: escape_sequence.hpp:37
auto bold
Definition: escape_sequence.hpp:35
auto reverse
Definition: escape_sequence.hpp:41
auto is_console
Definition: is_console.hpp:26
Definition: escape_sequence.hpp:22
std::string string
Definition: junit5.hpp:26