Color for the current session, change the foreground and background color of the command prompt window _dos/bat
Source: Internet
Author: User
Color
For the current session, change the foreground and background color of the command prompt window. If used without parameters, color restores the foreground and background colors of the command Prompt window to the default color.
Grammar
Color [FB]
Parameters
Fb
Set foreground f and background g colors. The following table lists the hexadecimal digits that can be used as values for f and G. Value Color
0 Black
1 Blue
2 Green
3 Lake Blues
4 Red
5 Purple
6 Yellow
7 White
8 Grey
9 Light Blue
A Light Green
B Shallow Water Green
C Light Red
D Light Purple
E Light Yellow
F Bright White
/?
Display Help at the command prompt.
Comments
To set the default command Prompt window color, click the upper-left corner of the command Prompt window, click Default, click the Color tab, and then click the color you want for screen text and screen background.
For the current session, you can use CMD/T:FB to change the color of the command prompt window.
If the foreground and background colors are the same, the color command sets the ERRORLEVEL to 1.
Example
To set the foreground color of the command prompt window to red and the background color to white, type:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.