HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

color — Set the console foreground and background colors. More information: <https://learn.microsoft.com/win

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandforegroundcolorandcliconsoleset
windows

Problem

How to use the color command: Set the console foreground and background colors. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/color>.

Solution

color — Set the console foreground and background colors. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/color>.

Set the console colors to the default values:
color


List available color values and detailed information:
color /?


Set the console foreground and background to a specific color using hexadecimal numbers (1-9,a-f):
color {{foreground_code}}{{background_code}}

Code Snippets

Set the console colors to the default values

color

List available color values and detailed information

color /?

Set the console foreground and background to a specific color using hexadecimal numbers (`1-9,a-f`)

color {{foreground_code}}{{background_code}}

Context

tldr-pages: windows/color

Revisions (0)

No revisions yet.