News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Colored prompt

Started by Magnum, November 15, 2011, 12:55:19 AM

Previous topic - Next topic

Magnum

I am trying to find a way to load ansi.sys in order to display a colored prompt.

The COLOR command isn't cutting it.  :bg

I have modified ansi.nt and config.nt with no luck.

I am hoping there is a way, I sure miss a lot of things that DOS had.

Have a great day,
                         Andy

dedndave

ansi.sys is a 16-bit driver
cmd.exe is a 32-bit program
you may be able to load it by modifying a shortcut to cmd.exe, however - never tried it on an nt system   :P

at any rate, create a shortcut to cmd.exe
then, right-click on the shortcut - Properties - Colors tab   :U

dedndave

if you want to change colors on the fly, as in a batch file...
make a little program that reads the command line and sets the console attributes using SetConsoleTextAttribute

Magnum

Dave,

This works great on XP Sp3.

It even works with prompt commands and doskey macros.

http://gynvael.coldwind.pl/?id=188&lang=en

Now I am looking for a red white and blue prompt that had an american flag as well.
Have a great day,
                         Andy

dedndave