- Added colour output, with --monochrome switch to disable this.

This commit is contained in:
ccremers
2005-12-28 15:27:22 +00:00
parent e19f8bddd1
commit ab75acea62
3 changed files with 77 additions and 16 deletions

View File

@@ -89,6 +89,7 @@ switchesInit (int argc, char **argv)
switches.reportStates = 0;
switches.extendNonReads = 0; // default off
switches.extendTrivial = 0; // default off
switches.monochrome = false; // default colors
// Obsolete
switches.latex = 0; // latex output?
@@ -898,6 +899,19 @@ switcher (const int process, int index)
}
}
if (detect (' ', "monochrome", 0))
{
if (!process)
{
helptext ("--monochrome", "disable color terminal output");
}
else
{
switches.monochrome = true;
return index;
}
}
#ifdef DEBUG
if (detect ('D', "debug", 1))
{