Exemple #1
0

        
Exemple #2
0
        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();
        }