VOGONS


First post, by curvedline

User metadata
Rank Newbie
Rank
Newbie

xtree and dosbox has a small problem that took me a year to find
CALL SetColor.BAT 1 32

SetColor.BAT
echo [%1;%2m
echo [2A
GOTO :EOF >nul

all external batches need GOTO :EOF >nul at the end for xtreegold to return to the caller

Reply 1 of 2, by mbsystem

User metadata
Rank Newbie
Rank
Newbie

or by ending the .bat file with the character 1A, using a hex editor. Some older text editors were capable of preserving this invisible character in Windows.

Reply 2 of 2, by analog_programmer

User metadata
Rank Oldbie
Rank
Oldbie
mbsystem wrote on Today, 15:17:

or by ending the .bat file with the character 1A, using a hex editor. Some older text editors were capable of preserving this invisible character in Windows.

Yep, this also apply to old DOS text editors. And the character for EOF (0x1A) is equal to <Ctrl>+<Z> key combination.

The word Idiot refers to a person with many ideas, especially stupid and harmful ideas.
This world goes south since everything's run by financiers and economists.
This isn't voice chat, yet some people overusing online communications talk and hear voices.