public TestableAnsiConsole(ColorSystem system, AnsiSupport ansi = AnsiSupport.Yes, int width = 80) { _writer = new StringWriter(); _console = AnsiConsole.Create(new AnsiConsoleSettings { Ansi = ansi, ColorSystem = (ColorSystemSupport)system, Out = _writer, LinkIdentityGenerator = new TestLinkIdentityGenerator(), }); Width = width; Input = new TestableConsoleInput(); }