| 231 | #endif |
| 232 | |
| 233 | static const std::string_view GetAnsiEscapeCode(std::string& buf, EConsoleColor front, EConsoleColor back, EConsoleStyle style) SKR_NOEXCEPT |
| 234 | { |
| 235 | buf.clear(); |
| 236 | const auto fcv = GetFrontColor<ANSI::FrontColorSpec>(front); |
| 237 | const auto bcv = GetBackColor<ANSI::BackColorSpec>(back); |
| 238 | const auto scv = GetStyle<ANSI::StyleSpec>(style); |
| 239 | buf.append(fcv).append(bcv).append(scv); |
| 240 | return buf; |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | void LogConsoleSink::set_front_color(LogLevel level, EConsoleColor front) SKR_NOEXCEPT |