VOGONS


First post, by denmiclaw

User metadata
Rank Newbie
Rank
Newbie

Hello, first post here and all, looking for some help!

I'm running DosBox .73, through D-Fend Reloaded 0.8.2

What I am trying to do, is add color to a batch menu.

For example, the game Aztec Adventure, is comprised of 4 episodes. I found and edited a batch file, that lets you choose which episode to run.. so that instead of having 4 seperate D-fend entries, I only have the one.

Here is what I have..

@echo off
:start
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Aztec Adventure º
echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo º 1. Episode 1 º
echo º 2. Episode 2 º
echo º 3. Episode 3 º
echo º 4. Episode 4 º
echo º 5. Exit º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
choice /c:12345 /N Your Choice :

if errorlevel 5 goto five
if errorlevel 4 goto four
if errorlevel 3 goto three
if errorlevel 2 goto two
if errorlevel 1 goto one

:one
aa1.exe
:two
aa2.exe
:three
aa3.exe
:four
aa4.exe
:five
exit

-- Now, this works just fine, no problems running it whatsoever.. but it's just a simple white text on black background, and I'd like to spice it up some.

I've discovered the DosBox shell doesn't support the color command, the only one I can see it does support, is set textcolor - but I can't seem to figure out how to set it properly.

Can anyone help me with this?

Thank you in advance!

Reply 1 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox support ansi sequences for the colour. So google for them
Or create a languagefile (config -wc dosbox.lang) and see how they work (as the intro message is created using that)

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 6, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

[MOVED]

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 3 of 6, by ADDiCT

User metadata
Rank Oldbie
Rank
Oldbie

Using 4DOS would be another way of getting nice colours. My self-made menu system creates batches on the fly (by piping commands to a text file), so i can even set DOSBox options or exit 4DOS before starting a game. You can create very nice menus with WBAT, too.

Reply 5 of 6, by denmiclaw

User metadata
Rank Newbie
Rank
Newbie

Thanks for the help