CALL SetColor.bat 1 33
ECHO ===========================
ECHO DUNE 2 - Patched - EU v1.07
ECHO ===========================
ECHO.
CALL SetColor.bat 1 36
ECHO 1. english
ECHO 2. german
ECHO 3. french
ECHO.
CALL SetColor.bat 1 37
choice /C:1234567890abcdefghijklmnopqrstuvwxyz /N "Q to quit or any other key to play :"
IF ErrorLevel 27 GOTO :END
IF ErrorLevel 3 GOTO :dune2-fr
IF ErrorLevel 2 GOTO :dune2-ge
IF ErrorLevel 1 GOTO :dune2-en
SetColor.BAT below has
echo [%1;%2m
echo [2A
thanks, this method was the same as call :sub, i can pass the variables, instead of having 16 color batch files, that could defeat the purpose of using a subroutine, now batch is more readable.
but SetColor.BAT makes an ONE empty line echoing out at the 1st row
in order to avoid this, i used <nul SET /P "= [%~1;%~2m" in windows
in dosbox, i tired
<nul echo [%1;%2m
set "=[%1;%2m"
set "aa=[%1;%2m"
set aa="[%1;%2m"
set aa=[%1;%2m
none of the above tricks worked in dosbox
always having one empty line at 1st row is still ok, but the total of 24 rows is all i can have in DOS's text mode, this gives me 23 rows to work with "SetColor.BAT"
if there is a workaround to save one row, please let me know