* Porting console fix from Trunk to Sugilite

Sugilite
Adam Frisby 2007-06-21 18:49:35 +00:00
parent fc3aa3e193
commit 2028cc5896
1 changed files with 11 additions and 3 deletions

View File

@ -124,11 +124,19 @@ namespace OpenSim.Framework.Console
Log.WriteLine(format, args); Log.WriteLine(format, args);
Log.Flush(); Log.Flush();
if (!m_silent) if (!m_silent)
{
try
{ {
System.Console.ForegroundColor = color; System.Console.ForegroundColor = color;
System.Console.WriteLine(format, args); System.Console.WriteLine(format, args);
System.Console.ResetColor(); System.Console.ResetColor();
} }
catch (System.ArgumentNullException)
{
// Some older systems dont support coloured text.
System.Console.WriteLine(format, args);
}
}
return; return;
} }