- The 'diagnostics' command obeys color settings.
This commit is contained in:
Paul Beckingham 2014-07-28 00:59:22 -04:00
parent 4f30dce20a
commit cb2b1b1e37
2 changed files with 4 additions and 1 deletions

View file

@ -64,7 +64,9 @@ CmdDiagnostics::CmdDiagnostics ()
// kind of questions we always have to ask whenever something is wrong.
int CmdDiagnostics::execute (std::string& output)
{
Color bold ("bold");
Color bold;
if (context.color ())
bold = Color ("bold");
std::stringstream out;
out << "\n"