Example #1
0
 public ConsoleWriter(TextWriter writer, ODConsole.ConsoleColor color, ConsoleFlashMode mode, bool beep)
 {
     this.color    = color;
     this.flashing = mode;
     this.writer   = writer;
     this.beep     = beep;
 }
Example #2
0
 public override void Write(char[] data, int start, int count)
 {
     ODConsole.ConsoleColor oldColor = ODConsole.Color;
     try
     {
         ODConsole.Color = color;
         writer.Write(data, start, count);
     }
     finally
     {
         ODConsole.Color = oldColor;
     }
     Flash();
 }
Example #3
0
 public override void Write(char ch)
 {
     ODConsole.ConsoleColor oldColor = ODConsole.Color;
     try
     {
         ODConsole.Color = color;
         writer.Write(ch);
     }
     finally
     {
         ODConsole.Color = oldColor;
     }
     Flash();
 }
Example #4
0
 public override void Write(string s)
 {
     ODConsole.ConsoleColor oldColor = ODConsole.Color;
     try
     {
         ODConsole.Color = color;
         Flash();
         writer.Write(s);
     }
     finally
     {
         ODConsole.Color = oldColor;
     }
     Flash();
 }