How do I change the default colors in a console? #16299

Open
opened 2026-01-31 05:03:16 +00:00 by claunia · 0 comments
Owner

Originally created by @vefatica on GitHub (Dec 28, 2021).

In a CMD console, with white text (37) on a black background (40), I can issue color 70 (black on white) and existing white text becomes black and the background of the whole window becomes white. But my prompt ends with ^[[0m and that seems to restore white on black. How can I change the defaults (in particular, what ^[[0m means)? Thanks.

Microsoft Windows 10 Pro for Workstations
10.0.19044.1415 (2009, 21H2)

image

Originally created by @vefatica on GitHub (Dec 28, 2021). In a CMD console, with white text (37) on a black background (40), I can issue `color 70` (black on white) and existing white text becomes black and the background of the whole window becomes white. But my prompt ends with ^[[0m and that seems to restore white on black. How can I change the defaults (in particular, what ^[[0m means)? Thanks. Microsoft Windows 10 Pro for Workstations 10.0.19044.1415 (2009, 21H2) ![image](https://user-images.githubusercontent.com/61856645/147604650-84f48968-fbd5-493f-8801-a84608a11314.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16299