17#include <util/pragma_push.def>
19#pragma warning(disable:4668)
21#pragma warning(disable : 5039)
28#include <util/pragma_pop.def>
56#ifdef ENABLE_VIRTUAL_TERMINAL_PROCESSING
76 return "\x1b[" + std::to_string(
c) +
'm';
81 const std::string &message)
115 std::cout << message <<
'\n';
118 std::cerr << message <<
'\n';
126 std::cout << message <<
'\n';
129 std::cerr << message <<
'\n';
141 std::cout << std::flush;
144 std::cerr << std::flush;
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
bool use_SGR
true if we use ECMA-48 SGR to render colors
bool is_a_tty
true if we are outputting to a proper console
console_message_handlert()
std::string command(unsigned c) const override
Create an ECMA-48 SGR (Select Graphic Rendition) command with given code.
void print(unsigned, const xmlt &) override
virtual void flush(unsigned level) override
virtual void print(unsigned level, const std::string &message)=0
std::wstring widen(const char *s)