mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-10-31 17:15:28 +08:00 
			
		
		
		
	 8e4f33bba4
			
		
	
	8e4f33bba4
	
	
	
		
			
			This is far from complete, but it's a start and it will enable us to create things like tables and other complex objects in the long run.
		
			
				
	
	
		
			20 lines
		
	
	
		
			506 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			506 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Spectre.Console.Composition;
 | |
| 
 | |
| namespace Spectre.Console
 | |
| {
 | |
|     /// <summary>
 | |
|     /// A console capable of writing ANSI escape sequences.
 | |
|     /// </summary>
 | |
|     public static partial class AnsiConsole
 | |
|     {
 | |
|         /// <summary>
 | |
|         /// Renders the specified object to the console.
 | |
|         /// </summary>
 | |
|         /// <param name="renderable">The object to render.</param>
 | |
|         public static void Render(IRenderable renderable)
 | |
|         {
 | |
|             Console.Render(renderable);
 | |
|         }
 | |
|     }
 | |
| }
 |