public void WriteQueuedLines(bool clearScreen) { if (clearScreen) { Console.Clear(); Console.ForegroundColor = ConsoleColor.Black; Console.BackgroundColor = ConsoleColor.White; string title = string.Format("JiraConsole (Not Trademarked) - written by Paul Brower"); Console.WriteLine(title); if (!string.IsNullOrEmpty(configInfo)) { Console.WriteLine(configInfo); } } for (int i = 0; i < _lines.Count; i++) { ConsoleLine l = _lines[i]; if (l.UseColors) { Console.ForegroundColor = l.Foreground; Console.BackgroundColor = l.Background; } if (l.WritePartialLine) { Console.Write(l.Text); } else { Console.WriteLine(l.Text); } } _lines.Clear(); }
public void AddConsoleLine(ConsoleLine cl) { _lines.Add(_lines.Count, cl); }