* Porting console fix from Trunk to Sugilite
parent
fc3aa3e193
commit
2028cc5896
|
@ -125,9 +125,17 @@ namespace OpenSim.Framework.Console
|
||||||
Log.Flush();
|
Log.Flush();
|
||||||
if (!m_silent)
|
if (!m_silent)
|
||||||
{
|
{
|
||||||
System.Console.ForegroundColor = color;
|
try
|
||||||
System.Console.WriteLine(format, args);
|
{
|
||||||
System.Console.ResetColor();
|
System.Console.ForegroundColor = color;
|
||||||
|
System.Console.WriteLine(format, args);
|
||||||
|
System.Console.ResetColor();
|
||||||
|
}
|
||||||
|
catch (System.ArgumentNullException)
|
||||||
|
{
|
||||||
|
// Some older systems dont support coloured text.
|
||||||
|
System.Console.WriteLine(format, args);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue