3#include <unordered_map>
15using StyleMap = std::unordered_map<std::string, Utils::COLOR>;
22 const std::string& text,
31 bool enable_color =
true
33 : enabled(enable_color) {}
36 const std::string& text,
39 if (!enabled)
return text;
std::unordered_map< std::string, Utils::COLOR > StyleMap
std::function< Utils::COLOR(size_t)> RowColorFn
std::string format_colored_message(const std::string &message, COLOR color)
Formats a message with ANSI color codes.
COLOR
Enumeration of available colors for formatted messages.
Defines utility functions used across all files.