- Added colour output, with --monochrome switch to disable this.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user