mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	Add AnsiConsole.Write method
				
					
				
			This commit also obsoletes the `AnsiConsole.Render` method. Closes #576
This commit is contained in:
		 Patrik Svensson
					Patrik Svensson
				
			
				
					committed by
					
						 Phil Scott
						Phil Scott
					
				
			
			
				
	
			
			
			 Phil Scott
						Phil Scott
					
				
			
						parent
						
							ca2e6ce0ad
						
					
				
				
					commit
					e0395dfa2b
				
			| @@ -14,17 +14,17 @@ namespace Spectre.Console.Examples | ||||
|             catch (Exception ex) | ||||
|             { | ||||
|                 AnsiConsole.WriteLine(); | ||||
|                 AnsiConsole.Render(new Rule("Default").LeftAligned()); | ||||
|                 AnsiConsole.Write(new Rule("Default").LeftAligned()); | ||||
|                 AnsiConsole.WriteLine(); | ||||
|                 AnsiConsole.WriteException(ex); | ||||
|  | ||||
|                 AnsiConsole.WriteLine(); | ||||
|                 AnsiConsole.Render(new Rule("Compact").LeftAligned()); | ||||
|                 AnsiConsole.Write(new Rule("Compact").LeftAligned()); | ||||
|                 AnsiConsole.WriteLine(); | ||||
|                 AnsiConsole.WriteException(ex, ExceptionFormats.ShortenEverything | ExceptionFormats.ShowLinks); | ||||
|  | ||||
|                 AnsiConsole.WriteLine(); | ||||
|                 AnsiConsole.Render(new Rule("Compact + Custom colors").LeftAligned()); | ||||
|                 AnsiConsole.Write(new Rule("Compact + Custom colors").LeftAligned()); | ||||
|                 AnsiConsole.WriteLine(); | ||||
|                 AnsiConsole.WriteException(ex, new ExceptionSettings | ||||
|                 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user