3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Batch: How to make a menu's questions dif. colors without changing the entire menu color?

Hey guys, I'm kinda new. Please tell me how you make a menu in batch that has, for example, a different color for each option. I've seen it done in MUDs such as BallteTech., picture down below. I have been trying to figure out how, but I don't know if it is even possible... Thank you!

P.S. I'm not advertising, it's not even mine, nor do I claim it as mine or have anything to dow ith the game BattleTech itself. I'm only using it as an example. All credits go to their owners, blah blah...

Game.bmp
18 answers
sort by: active | newest | oldest
Sep 24, 2010. 4:41 PMaccount3r2 says:
what is that... i see it is in telnet, but what is it? please tell me. oh, and you said you got the answer. what is it if you do have it?
Jan 21, 2010. 2:38 PMlemonie says:
Do you know this site?
www.dostips.com/

L
Jan 22, 2010. 12:34 PMlemonie says:
I rarely touch batch script these days, but that site does have a lot of good content.

L
Jan 23, 2010. 2:29 AMlemonie says:
ANSI is a character set, like ASCII.
The color basics are here:
www.dostips.com/DosCommandIndex.htm#COLOR

L
Jan 23, 2010. 8:13 AMlemonie says:
Sorry, that's the entire window.
Try this one - needs getcolorcode linked at the top. I don't use these things but I'm sure they work - CTRL-C/V it.
Function.echo

L
Jan 23, 2010. 2:42 PMg-one says:
I'm impressed. But creating and calling a *.com file for each color takes a lot of time and thats why it is verry slow.
BTW not sure if *.com files are executable on a 64bit OS.
Jan 23, 2010. 2:54 PMg-one says:
www.dostips.com/
There you will find the missing function getColorCode.
Write your batch:

@echo off &setlocal
call :echo RedYellow TEXT 1
call :echo BlueWhite TEXT 2
call :echo WhiteBlack TEXT 3
pause

del /q "%temp%\color*.com"
goto :eof
:: ~~~~

:echo col txt -- echoes text in a specific color
:: here the rest of the function!
:: ~~~~

:getColorCode col ret -- converts color text to color code
:: here the rest of the function!
Jan 21, 2010. 2:24 PMNachoMahma says:
Jan 21, 2010. 2:19 PMg-one says:
No chance with native batch. You can use the COLOR command only for the whole batch window.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!