Functionality of cmd.exe "color" command broken since 1.22 #23088

Closed
opened 2026-01-31 08:31:55 +00:00 by claunia · 0 comments
Owner

Originally created by @slon872 on GitHub (Mar 28, 2025).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

1.22.10731.0

Windows build number

10.0.26100.3624

Other Software

New history list (F7) implementation changes the default text/background colors of console and does not restore them back on close. Probably, introduced in #17445.

Steps to reproduce

  • Run command prompt (cmd.exe) in Terminal
  • Type help command. Help will be displayed.
  • Type color E0 command. Colors of text and background will change,
  • Type help command again. Help will be displayed with new color. You can type other commands, they will also produce output using new colors.
  • Press F7, select help command from the list and press Enter, Help will be displayed with original color that was active before the color E0 command was executed. All subsequent commands will also use this color.

Expected Behavior

Color change made by color E0 command will remain active after history usage,

Actual Behavior

Result of color E0 command is reverted by F7 implementation,

Originally created by @slon872 on GitHub (Mar 28, 2025). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version 1.22.10731.0 ### Windows build number 10.0.26100.3624 ### Other Software New history list (F7) implementation changes the default text/background colors of console and does not restore them back on close. Probably, introduced in #17445. ### Steps to reproduce * Run command prompt (cmd.exe) in Terminal * Type `help` command. Help will be displayed. * Type `color E0` command. Colors of text and background will change, * Type `help` command again. Help will be displayed with new color. You can type other commands, they will also produce output using new colors. * Press F7, select `help` command from the list and press Enter, Help will be displayed with **original** color that was active before the `color E0` command was executed. All subsequent commands will also use this color. ### Expected Behavior Color change made by `color E0` command will remain active after history usage, ### Actual Behavior Result of `color E0` command is reverted by F7 implementation,
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23088