mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
* Porting console fix from Trunk to Sugilite
This commit is contained in:
@@ -125,9 +125,17 @@ namespace OpenSim.Framework.Console
|
||||
Log.Flush();
|
||||
if (!m_silent)
|
||||
{
|
||||
System.Console.ForegroundColor = color;
|
||||
System.Console.WriteLine(format, args);
|
||||
System.Console.ResetColor();
|
||||
try
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user