예제 #1
0
        public AnsiConsoleFacade(Profile profile)
        {
            _renderLock    = new object();
            _ansiBackend   = new AnsiConsoleBackend(profile);
            _legacyBackend = new LegacyConsoleBackend(profile);

            Profile  = profile ?? throw new ArgumentNullException(nameof(profile));
            Input    = new DefaultInput(Profile);
            Pipeline = new RenderPipeline();
        }
예제 #2
0
 public AnsiConsoleCursor(AnsiConsoleBackend backend)
 {
     _backend = backend ?? throw new ArgumentNullException(nameof(backend));
 }