This is a cool trick that let you alter foreground and background colors in command prompt.
Syntax: COLOR [attr], where attr specifies color attributes of console output.
Color attributes are specified by TWO hex digits -- the first corresponds to the background; the second foreground. Each digit can be any of the following values:
In case no argument is given, this command restores the color to what it was when CMD.EXE started. This value either comes from the current console window, the /T command line switch or from the DefaultColor registry value.
Syntax: COLOR [attr], where attr specifies color attributes of console output.
Color attributes are specified by TWO hex digits -- the first corresponds to the background; the second foreground. Each digit can be any of the following values:
| Hexadecimal Value | Corresponding Color |
|---|---|
| 0 | Black |
| 1 | Blue |
| 2 | Green |
| 3 | Aqua |
| 4 | Red |
| 5 | Purple |
| 6 | Yellow |
| 7 | White |
| 8 | Grey |
| 9 | Light Blue |
| A | Light Green |
| B | Light Aqua |
| C | Light Red |
| D | Light Purple |
| E | Light Yellow |
| F | Bright White |
In case no argument is given, this command restores the color to what it was when CMD.EXE started. This value either comes from the current console window, the /T command line switch or from the DefaultColor registry value.
Popular
Tags
Videos
0 comments:
Post a Comment