scenario_simulator_v2 C++ API
Namespaces | Macros | Functions | Variables
escape_sequence.hpp File Reference
#include <openscenario_interpreter/console/is_console.hpp>
#include <string>
Include dependency graph for escape_sequence.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 openscenario_interpreter
 
 openscenario_interpreter::console
 
 openscenario_interpreter::console::foreground
 
 openscenario_interpreter::console::background
 

Macros

#define BOILERPLATE(CODE, NAME)    inline auto NAME = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, CODE); }
 

Functions

template<typename... Ts>
auto & openscenario_interpreter::console::escape_sequence (std::basic_ostream< Ts... > &os, const std::string &code)
 

Variables

auto openscenario_interpreter::console::reset = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[0m" ); }
 
auto openscenario_interpreter::console::bold = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[1m" ); }
 
auto openscenario_interpreter::console::faint = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[2m" ); }
 
auto openscenario_interpreter::console::italic = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[3m" ); }
 
auto openscenario_interpreter::console::underline = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[4m" ); }
 
auto openscenario_interpreter::console::slow_blink = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[5m" ); }
 
auto openscenario_interpreter::console::rapid_blink = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[6m" ); }
 
auto openscenario_interpreter::console::reverse = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[7m" ); }
 
auto openscenario_interpreter::console::conceal = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[8m" ); }
 
auto openscenario_interpreter::console::foreground::black = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[30m" ); }
 
auto openscenario_interpreter::console::foreground::red = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[31m" ); }
 
auto openscenario_interpreter::console::foreground::green = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[32m" ); }
 
auto openscenario_interpreter::console::foreground::yellow = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[33m" ); }
 
auto openscenario_interpreter::console::foreground::blue = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[34m" ); }
 
auto openscenario_interpreter::console::foreground::magenta = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[35m" ); }
 
auto openscenario_interpreter::console::foreground::cyan = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[36m" ); }
 
auto openscenario_interpreter::console::foreground::white = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[37m" ); }
 
auto openscenario_interpreter::console::background::black = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[40m" ); }
 
auto openscenario_interpreter::console::background::red = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[41m" ); }
 
auto openscenario_interpreter::console::background::green = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[42m" ); }
 
auto openscenario_interpreter::console::background::yellow = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[43m" ); }
 
auto openscenario_interpreter::console::background::blue = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[44m" ); }
 
auto openscenario_interpreter::console::background::magenta = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[45m" ); }
 
auto openscenario_interpreter::console::background::cyan = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[46m" ); }
 
auto openscenario_interpreter::console::background::white = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, "[47m" ); }
 

Macro Definition Documentation

◆ BOILERPLATE

#define BOILERPLATE (   CODE,
  NAME 
)     inline auto NAME = [](std::ostream & os) -> decltype(auto) { return escape_sequence(os, CODE); }