Color for the current session, change the foreground and background color of the Command Prompt window

Source: Internet
Author: User

Color
For the current session, change the foreground and background color of the Command Prompt window. If this parameter is not included, color restores the foreground and background color of the Command Prompt window to the default color.

Syntax
Color [FB]

Parameters
FB
Set the foreground f and background G color. The following table lists hexadecimal numbers that can be used as values of F and G. Value color
0 black
1 blue
2 green
3 lake blue
4 red
5 purple
6 Yellow
7 white
8 gray
9 light blue
A light green
B shallow green
C light red
D light purple
E light yellow
F bright white

/?
Display help at the command prompt.
Note
To set the color of the default Command Prompt window, click the upper-left corner of the Command Prompt window, click "default", and click the "color" tab, click the color to use 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 color are the same, the color command sets errorlevel 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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.