mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 18:40:50 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			380 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			380 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using Spectre.Console;
 | 
						|
 | 
						|
namespace Generator.Commands
 | 
						|
{
 | 
						|
    public static class AsciiCastExtensions
 | 
						|
    {
 | 
						|
        public static AsciiCastOut WrapWithAsciiCastRecorder(this IAnsiConsole ansiConsole)
 | 
						|
        {
 | 
						|
            AsciiCastOut castRecorder = new(ansiConsole.Profile.Out);
 | 
						|
            ansiConsole.Profile.Out = castRecorder;
 | 
						|
 | 
						|
            return castRecorder;
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |