Color for the current session, changes the foreground and background colors of the command prompt window

Time:2021-7-22

colour
For the current session, change the foreground and background colors of the command prompt window. If used without parameters, then   color   The foreground and background colors of the command prompt window are restored to the default colors.

grammar
color [fb]

parameter
fb 
Set foreground   f   And background   g   Color. The following table lists the   f   and   g   The hexadecimal number of the value of.   value   colour  
0   black  
one   blue  
two   green  
three   Lake blue  
four   red  
five   violet  
six   yellow  
seven   white  
eight   grey  
nine   wathet  
A   Light green  
B   Shallow water green  
C   Light red  
D   lilac colour  
E   Light yellow  
F   Bright white  

/? 
Display help at the command prompt.  
notes
To set the default command prompt window color, click the upper left corner of the command prompt window, click Default, click the colors tab, and then click the color you want to use for screen text and screen background.  
For the current session, you can use the   cmd  / t:fb   To change the color of the command prompt window.  
If the foreground and background colors are the same, color   The order will be   ERRORLEVEL   Set to   1。  
example
To set the foreground color of the command prompt window to red and the background color to white, type:

color FC

XOX