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:
Black | 30 |
Red | 31 |
Green | 32 |
Yellow | 33 |
Blue | 34 |
Magenta | 35 |
Cyan | 36 |
White | 37 |
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:
Black | 40 |
Red | 41 |
Green | 42 |
Yellow | 43 |
Blue | 44 |
Magenta | 45 |
Cyan | 46 |
White | 47 |
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.
|