protected ConsoleBase(string handle, int width, int height) { Handle = handle ?? throw new ArgumentNullException(nameof(handle)); Width = width; Height = height; Version = 0; Renderer = new PlainConsoleRenderer(); Formatter = this; }
private AnsiConsole() : base("AnsiConsole", Console.BufferWidth, Console.BufferHeight) { // Attempt to sync the current screen and our buffer // Start on a clean line if (Console.CursorLeft != 0) { Console.WriteLine(); } if (Console.CursorTop != 0) { for (int cc = 0; cc < Console.CursorTop; cc++) { lines.Add(""); } count = Console.CursorTop; } Renderer = new AnsiConsoleRenderer(); Plain = new PlainConsoleRenderer(); }