COLOR

Print Topic  Return to Overview  Previous Topic  Next Topic 
Purpose:Change the default display colors.

 

Format:COLOR [BRIght] fg ON [BRIght] bg

 

fgThe new foreground color
bgThe new background color

 

See also:  CLS and Colors and Color Names for details about using colors and the name and numeric codes for colors.

 

Usage:

 

COLOR is normally used in batch files before displaying text. For example, to set screen colors to bright white on blue, you can use this command:

 

color bright white on blue

 

TCC also supports the CMD.EXE syntax:

 

COLOR bf

 

In this syntax, b is a hexadecimal digit that specifies the background color and f is a hexadecimal digit that specifies the foreground color.

 

If you have ANSI enabled and StdColors and/or InputColors set, they will override a COLOR command.

Topic "color.htm" last edited 1/26/2008. ©2008  JP Software, Inc.
Keywords: COLOR,Color settings,Setting colors