mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 10:35:27 +08:00 
			
		
		
		
	Add support for exclusive mode
This commit is contained in:
		
				
					committed by
					
						
						Phil Scott
					
				
			
			
				
	
			
			
			
						parent
						
							c2bab0ebf8
						
					
				
				
					commit
					7f6f2437b1
				
			@@ -13,9 +13,10 @@ namespace Spectre.Console
 | 
			
		||||
        public Profile Profile { get; }
 | 
			
		||||
        public IAnsiConsoleCursor Cursor => GetBackend().Cursor;
 | 
			
		||||
        public IAnsiConsoleInput Input { get; }
 | 
			
		||||
        public IExclusivityMode ExclusivityMode { get; }
 | 
			
		||||
        public RenderPipeline Pipeline { get; }
 | 
			
		||||
 | 
			
		||||
        public AnsiConsoleFacade(Profile profile)
 | 
			
		||||
        public AnsiConsoleFacade(Profile profile, IExclusivityMode exclusivityMode)
 | 
			
		||||
        {
 | 
			
		||||
            _renderLock = new object();
 | 
			
		||||
            _ansiBackend = new AnsiConsoleBackend(profile);
 | 
			
		||||
@@ -23,6 +24,7 @@ namespace Spectre.Console
 | 
			
		||||
 | 
			
		||||
            Profile = profile ?? throw new ArgumentNullException(nameof(profile));
 | 
			
		||||
            Input = new DefaultInput(Profile);
 | 
			
		||||
            ExclusivityMode = exclusivityMode ?? throw new ArgumentNullException(nameof(exclusivityMode));
 | 
			
		||||
            Pipeline = new RenderPipeline();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user