* Maintainence: Experimental console fix for Debian

afrisby
Adam Frisby 2007-06-21 18:41:15 +00:00
parent e1ab1454a4
commit f3db36fc39
1 changed files with 10 additions and 3 deletions

View File

@ -108,9 +108,16 @@ 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();
} // Because mono and old debian sucks.
catch (System.ArgumentNullException)
{
System.Console.WriteLine(format, args);
}
} }
return; return;
} }