mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-11-04 03:12:16 +08:00 
			
		
		
		
	add escape code color
This commit is contained in:
		
							
								
								
									
										3
									
								
								vendor/lib/lib_console.cmd
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/lib/lib_console.cmd
									
									
									
									
										vendored
									
									
								
							@@ -2,6 +2,7 @@
 | 
			
		||||
 | 
			
		||||
call "%~dp0lib_base.cmd"
 | 
			
		||||
set lib_console=call "%~dp0lib_console.cmd"
 | 
			
		||||
set ESC=
 | 
			
		||||
 | 
			
		||||
:: Much faster than using "%lib_console% debug_output ..." etc.
 | 
			
		||||
set print_debug=if %debug_output% gtr 0 %lib_console% debug_output
 | 
			
		||||
@@ -80,5 +81,5 @@ exit /b
 | 
			
		||||
:::.
 | 
			
		||||
:::-------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
    echo ERROR: %~1
 | 
			
		||||
    echo %ESC%[91;1mERROR:%ESC%[0m %~1
 | 
			
		||||
    exit /b
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user