add escape code color

This commit is contained in:
David Refoua 2022-10-18 16:20:30 +03:30
parent 9399cbdcd7
commit 5cdb98abb7

View File

@ -2,6 +2,7 @@
call "%~dp0lib_base.cmd" call "%~dp0lib_base.cmd"
set lib_console=call "%~dp0lib_console.cmd" set lib_console=call "%~dp0lib_console.cmd"
set ESC=
:: Much faster than using "%lib_console% debug_output ..." etc. :: Much faster than using "%lib_console% debug_output ..." etc.
set print_debug=if %debug_output% gtr 0 %lib_console% debug_output 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 exit /b