void PrintOutputs(Result results) { if (results.outLines.Count != 0) { Typer.PrintLines(results.outLines.ToArray()); Typer.Cursor.NextLine(); } if (results.errors.Count != 0) { Color tmp = _screen.GetFontColor(); _screen.SetFontColor(Typer.errorColor); Typer.PrintLines(results.errors.ToArray()); Typer.Cursor.NextLine(); _screen.SetFontColor(tmp); } }
public void WriteOutputs() { if (_writing) { if (_outputs.Count == 0) { Reset(); return; } lock (locker) { List <char> outs = _outputs; _typer.PrintLines(new string(outs.ToArray())); } _outputs = new List <char>(); _typer.Apply(); } }