fix invalid esc symbosl on logs

This commit is contained in:
lizzie 2026-03-07 18:51:58 +00:00
parent 387c543121
commit 8275903b65

View file

@ -41,6 +41,9 @@ static void PrintMessage(const Entry& entry) noexcept {
#ifdef _WIN32
auto const str = FormatLogMessage(entry).append(1, '\n');
fwrite(str.c_str(), 1, str.size(), stderr);
#elif defined(__OPENORBIS__)
auto const str = FormatLogMessage(entry).append(1, '\n');
fwrite(str.c_str(), 1, str.size(), stderr);
#else
#define ESC "\x1b"
auto const color_str = [&entry]() -> const char* {