MS-DOS 6.22 is running. Who needs Windows 10?
I know that upon starting there is a possibility to change the foreground and background color of the MS-DOS environment.
But is this also possible when MS-DOS is already running?
My case is, that I want to run a .BAT file, that then switching the color whether it throws an error or is ok.
Best Answer
There are two possibilities:
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).