public ConsoleWriter(TextWriter writer, ODConsole.ConsoleColor color, ConsoleFlashMode mode, bool beep) { this.color = color; this.flashing = mode; this.writer = writer; this.beep = beep; }
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(); }
public override void Write(char ch) { ODConsole.ConsoleColor oldColor = ODConsole.Color; try { ODConsole.Color = color; writer.Write(ch); } finally { ODConsole.Color = oldColor; } Flash(); }
public override void Write(string s) { ODConsole.ConsoleColor oldColor = ODConsole.Color; try { ODConsole.Color = color; Flash(); writer.Write(s); } finally { ODConsole.Color = oldColor; } Flash(); }