Skip to content

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

@slon872

Description

@slon872

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,

Metadata

Metadata

Assignees

Labels

Area-ServerDown in the muck of API call servicing, interprocess communication, eventing, etc.Impact-CorrectnessIt be wrong.Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-2A description (P2)Product-ConhostFor issues in the Console codebase

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions