mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031188: Draw Harness - enable colorized messages output to console by default
Message_PrinterOStream now uses colorized output by default. DRAWEXE has been corrected to disabled colorized output when it is called with -f argument to avoid spoiling testgrid HTML logs.
This commit is contained in:
@@ -37,7 +37,7 @@ Message_PrinterOStream::Message_PrinterOStream (const Message_Gravity theTraceLe
|
||||
: myStream (&std::cout),
|
||||
myIsFile (Standard_False),
|
||||
myUseUtf8 (Standard_False),
|
||||
myToColorize (Standard_False)
|
||||
myToColorize (Standard_True)
|
||||
{
|
||||
myTraceLevel = theTraceLevel;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ Message_PrinterOStream::Message_PrinterOStream (const Standard_CString theFileNa
|
||||
: myStream (&std::cout),
|
||||
myIsFile (Standard_False),
|
||||
myUseUtf8 (Standard_False),
|
||||
myToColorize (Standard_False)
|
||||
myToColorize (Standard_True)
|
||||
{
|
||||
myTraceLevel = theTraceLevel;
|
||||
if (strcasecmp(theFileName, "cerr") == 0)
|
||||
@@ -78,6 +78,7 @@ Message_PrinterOStream::Message_PrinterOStream (const Standard_CString theFileNa
|
||||
{
|
||||
myStream = (Standard_OStream* )aFile;
|
||||
myIsFile = Standard_True;
|
||||
myToColorize = Standard_False;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -74,7 +74,7 @@ public:
|
||||
//! Returns reference to the output stream
|
||||
Standard_OStream& GetStream() const { return *(Standard_OStream*)myStream; }
|
||||
|
||||
//! Returns TRUE if text output into console should be colorized depending on message gravity.
|
||||
//! Returns TRUE if text output into console should be colorized depending on message gravity; TRUE by default.
|
||||
Standard_Boolean ToColorize() const { return myToColorize; }
|
||||
|
||||
//! Set if text output into console should be colorized depending on message gravity.
|
||||
|
Reference in New Issue
Block a user