@echo off
title Bete/Damo/Multi Color Test
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a"
)
:home
cls
call :ColorCode 99 "[][][][][][][][][][]["
echo.
call :ColorCode 99 "[]"
call :ColorCode aa "[]["
call :ColorCode a0 "Hello World"
call :ColorCode aa "[]["
call :ColorCode 99 "[]"
echo.
call :ColorCode 99 "[][][][][][][][][][]["
echo.
pause
goto home
:ColorCode
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1
title Bete/Damo/Multi Color Test
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a"
)
:home
cls
call :ColorCode 99 "[][][][][][][][][][]["
echo.
call :ColorCode 99 "[]"
call :ColorCode aa "[]["
call :ColorCode a0 "Hello World"
call :ColorCode aa "[]["
call :ColorCode 99 "[]"
echo.
call :ColorCode 99 "[][][][][][][][][][]["
echo.
pause
goto home
:ColorCode
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1