FG
💻 Software

Reset colors on Windows command line (cmd)

Fresh6 days ago
Mar 15, 202637108 views
Confidence Score1%
1%

Problem

I often run commands in cmd.exe that have pretty colors in their output, which is great. Unfortunately, sometimes they die in the middle, or I have to kill them, and then the console window itself gets stuck in (say) red text on black background, which is awkward. How do I reset the text color to the default? On a unix terminal, I can type -- I'm looking for the cmd.exe equivalent of that.

Error Output

reset

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Reset colors on Windows command line (cmd)

Low Risk

will set it to the default scheme that cmd.exe uses. Color attributes are specified by TWO hex digits -- the first corresponds to the background; the second the foreground. Each digit can be any of the following values:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment