How Can One change the MS-DOS prompt font color?
MS-DOS is really old, and being the grandpappy of the computers it is really hard to find support for it.
I have these tried suggestions from websites:
http://www.easydos.com/menucolor.html
https://support.microsoft.com/en-us/kb/95099
http://www.computerhope.com/color.htm
I have edited:
Config.sys (It now says 'Menucolor= 2,0' )
C:\Windows\color.txt (It now says 'green')
Still not working.
Anyone have any idead on how to do this?
Notes
Before you suggest 'color a', Ms-Dos is not the cmd. I already tried that.
It is possible! There are multiple ms-dos viruses that have done this effectively.
I am running MS-DOS from Windows 98 on a virtual machine.
Best Answer
You can use
debug
to write a short COM file. When you rundebug
you'll get a single dash prompt, enter the following (including blank lines) and you'll get a filecolor.com
in your current working directory:It calls
int 10 ah=06
to clear the screen, setting the cursor at the bottom and filling with attributes inbh
. High nibble is background, low is foreground, colors are:(Thus bit 4 is high intensity.) To get red background with black foreground change 07 to 40.
Parsing the command line args to set colors is non-trivial, so just hard code your favorite one. Or do this in debug to update it:
Attribute is stored in location 010A, updating it directly is easier than typing it all again.