|Purpose:||Change the default display colors|
|Format:||COLOR [/F filename] [BRIght] fg ON [BRIght] bg|
COLOR [/FG:rgb /BG:rgb]
COLOR [/FT:color /BG:color]
|fg||The new foreground color|
|bg||The new background color|
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 syntax:
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 do not specify a new foreground and background color, COLOR will revert the display colors to those used when TCC was started (for compatibility with CMD).
If you have ANSI enabled and StdColors and/or InputColors set, they will override a COLOR command.
COLOR now supports changing the console color palette with either an .INI file (for example, as used by the ColorTool utility), or an .ITERMCOLORS file. The syntax is:
COLOR /F filename
If you are running in a Take Command tab window, COLOR will pass the new colors to Take Command to update the tab window. You can have a different color palette in each tab window.
You can set the foreground and background color in a TCC console window (not a TCMD tab window) to 16 million or 256 colors with the /FG and /BG options. You must be running Windows 10 or 11 and have ANSI enabled.
|/FG:rgb||Sets the foreground color to the 16 million color RGB value specified. Valid ranges for r, g, and b are 0-255.|
|/BG:rgb||Sets the background color to the 16 million color RGB value specified. Valid ranges for r, g, and b are 0-255.|
|/FG:color||Sets the foreground color to the 256 color (xterm) value specified. Valid range for color is 0 - 255.|
|/FG:color||Sets the background color to the 256 color (xterm) value specified. Valid range for color is 0 - 255.|
|/P||Displays a color picker dialog to select a color. Must be used with /FG or /BG, and cannot be combined with /F.|