public AnsiConsoleFacade(Profile profile, IExclusivityMode exclusivityMode) { _renderLock = new object(); Profile = profile ?? throw new ArgumentNullException(nameof(profile)); Input = new DefaultInput(Profile); ExclusivityMode = exclusivityMode ?? throw new ArgumentNullException(nameof(exclusivityMode)); Pipeline = new RenderPipeline(); _ansiBackend = new AnsiConsoleBackend(this); _legacyBackend = new LegacyConsoleBackend(this); }
public AnsiConsoleCursor(AnsiConsoleBackend backend) { _backend = backend ?? throw new ArgumentNullException(nameof(backend)); }