[Mono-list] Console.ForegroundCOlor throws exception
ERobishaw
Eric at Robishaw.us
Fri Aug 15 02:47:09 EDT 2008
Mono 1.9 on Debian Linux system...
Trying Console.ForegroundColor = ConsoleColor.Red gives the following
exception:
<code>
System.ArgumentNullException: Argument cannot be null.
at System.String.FormatHelper (System.Text.StringBuilder result,
IFormatProvider provider, System.String format, System.Object[] args) [
0x00000]
at System.String.Format (IFormatProvider provider, System.String format,
System.Object[] args) [0x00000]
at System.String.Format (System.String format, System.Object arg0)
[0x00000]
at System.TermInfoDriver.set_ForegroundColor (ConsoleColor value)
[0x00000]
at System.ConsoleDriver.set_ForegroundColor (ConsoleColor value) [0x00000]
at System.Console.set_ForegroundColor (ConsoleColor value) [0x00000]
</code>
I saw someone posted a message about using Console2 class... I think they
meant .net 2.0?
Is there any other way to get color output?
I suppose writing VT102 commands (yuck).
Any ideas?
--
View this message in context: http://www.nabble.com/Console.ForegroundCOlor-throws-exception-tp18994579p18994579.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list