Is there a similar command like COLOR in MS-DOS?
There are two possibilities:
- You install ANSI.SYS or any other ANSI driver. Then you just write an escape sequence to the screen, e.g.
ESC [ 37 ; 44 m
, where ESC is the Escape character (0x1b) and without any spaces. This sequence will change the color of the following text to "white on blue". If you can input the ESC character into your BAT file, this works well (try Ctrl+P ESC in DOS EDIT). - You directly change the screen memory at 0xB800. This way you can also change the color of existing text without removing (and rewriting) it first. You probably need an external tool (DEBUG should suffice, though) to be able to change display memory. Also, it probably only works on IBM-PC compatible systems with a CGA-compatible graphics card.