home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
205_01
/
color.doc
< prev
next >
Wrap
Text File
|
1979-12-31
|
1KB
|
32 lines
-------------------------------------------------------------------------------
COLOR
-------------------------------------------------------------------------------
Format:
color <foreground code>[ <background code>]
Purpose:
COLOR changes the colors on the screen according to the following color codes:
Black: 0 Red: 1 Green: 2 Yellow: 3
Blue: 4 Magenta: 5 Cyan: 6 White: 7
The background color code may be omitted; the default is black. To highlight
the foreground color, append a plus after the foreground color code.
Examples:
color 3 0 Yellow on black
color 4 Blue (on default black)
color 2+ 4 Bright green on blue
Note:
Since COLOR uses ANSI escape sequences, the following line must appear in the
file named CONFIG.SYS on the root directory of the boot disk at the system
start.
device=ANSI.SYS