Support changing color mode at runtime

This commit is contained in:
Ken Matsui
2022-05-27 00:01:28 +09:00
parent e8f922a1b8
commit 9086b1114f
3 changed files with 82 additions and 2 deletions

View File

@@ -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
}