From 5cdb98abb79ffd10b8f489a0898d52b1bf6dd607 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Tue, 18 Oct 2022 16:20:30 +0330 Subject: [PATCH] add escape code color --- vendor/lib/lib_console.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor/lib/lib_console.cmd b/vendor/lib/lib_console.cmd index a98b8cb..0ca7ed0 100644 --- a/vendor/lib/lib_console.cmd +++ b/vendor/lib/lib_console.cmd @@ -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