mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
Support changing color mode at runtime
This commit is contained in:
@@ -125,7 +125,7 @@ inline std::string format_underline(const std::string& message,
|
||||
|
||||
std::ostringstream retval;
|
||||
|
||||
if(colorize)
|
||||
if(color::should_color() || colorize)
|
||||
{
|
||||
retval << color::colorize; // turn on ANSI color
|
||||
}
|
||||
|
Reference in New Issue
Block a user