Fox Y2K Logo
The DOS Zone: FAQ's
FOXy2K
Home

The DOS Zone

My Software

Disks in Detail

Books

Doom Stuff

Jokes

Links

Disclaimer

Email me

IMPORTANT NOTICE


Use this site only if you aggree to the terms in my Disclaimer

How do I change the colours?

In order to change the colours which DOS uses you must first load ANSI.SYS (except for PTS-DOS users), you can then set various colours (and attributes) by using the PROMPT command.
Next you need to amend the prompt command, in AUTOEXEC.BAT, to look something like this:
prompt $e[32;40;1m$p$g
Be sure to make the "m" lower case.
To change the foreground colour you need to change the number 32 to the number which represents the colour you want. The codes are:
Black30
Red31
Green32
Yellow33
Blue34
Magenta35
Cyan36
White37
So for magenta text use:
prompt $e[35;40;1m$p$g
The number 40 could be changed to give a different background colour, the codes are:
Black40
Red41
Green42
Yellow43
Blue44
Magenta45
Cyan46
White47
So yellow text on a blue background would be: prompt $e[33;44;1m$p$g

Please look up ANSI.SYS and PROMPT in the ** DOS Reference ** section for details on how to do this.

For the benefit of any Micro Computer Mart readers out there who are suspicious about this, don't be. The letter (email actually) came from me, so kindly don't accuse me of stealing their text etc.


Copyright © Jonathan Fox 2001.