Fox Y2K Logo
The DOS Zone - FAQs
FOXy2K
Contents

Home

The DOS Zone

FAT System Guide

My Software

 

How do I change the colours?

 

Please view my Notices page before viewing this area, it is not complete!
This is work in progress.

 

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.

 


Trawled this site and still can't find the solution to your problem?
If so I highly recommend The DOS Board.
It has several good techies waiting to answer your questions and I hang around there a lot too.

Copyright © Jonathan Fox 2000-2002.