diff options
author | Adam Frisby | 2007-06-21 18:41:15 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-21 18:41:15 +0000 |
commit | f3db36fc392e2c412fe45854636a880744cca4be (patch) | |
tree | 43f46ae003617f0b9f0b15d32239e99b1826ff07 /Common/OpenSim.Framework.Console/ConsoleBase.cs | |
parent | * Added 'LogFilename' attribute to simconfig.xml - in order to specify log name (diff) | |
download | opensim-SC_OLD-f3db36fc392e2c412fe45854636a880744cca4be.zip opensim-SC_OLD-f3db36fc392e2c412fe45854636a880744cca4be.tar.gz opensim-SC_OLD-f3db36fc392e2c412fe45854636a880744cca4be.tar.bz2 opensim-SC_OLD-f3db36fc392e2c412fe45854636a880744cca4be.tar.xz |
* Maintainence: Experimental console fix for Debian
Diffstat (limited to 'Common/OpenSim.Framework.Console/ConsoleBase.cs')
-rw-r--r-- | Common/OpenSim.Framework.Console/ConsoleBase.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Common/OpenSim.Framework.Console/ConsoleBase.cs b/Common/OpenSim.Framework.Console/ConsoleBase.cs index 4b0f7b1..30854fe 100644 --- a/Common/OpenSim.Framework.Console/ConsoleBase.cs +++ b/Common/OpenSim.Framework.Console/ConsoleBase.cs | |||
@@ -108,9 +108,16 @@ namespace OpenSim.Framework.Console | |||
108 | Log.Flush(); | 108 | Log.Flush(); |
109 | if (!m_silent) | 109 | if (!m_silent) |
110 | { | 110 | { |
111 | System.Console.ForegroundColor = color; | 111 | try |
112 | System.Console.WriteLine(format, args); | 112 | { |
113 | System.Console.ResetColor(); | 113 | System.Console.ForegroundColor = color; |
114 | System.Console.WriteLine(format, args); | ||
115 | System.Console.ResetColor(); | ||
116 | } // Because mono and old debian sucks. | ||
117 | catch (System.ArgumentNullException) | ||
118 | { | ||
119 | System.Console.WriteLine(format, args); | ||
120 | } | ||
114 | } | 121 | } |
115 | return; | 122 | return; |
116 | } | 123 | } |