Skip to content

Selective disabling/re-enabling of VT support (ANSI escape sequences) is broken #19395

@mklement0

Description

@mklement0

Prerequisites

Steps to reproduce

As discussed in #18771, which was inappropriately closed, as well as in #19101 (comment):

Note:

  • Applies to conhost.exe windows (regular console windows on Windows) only.
cmd /c ver | Select-String Microsoft

Expected behavior

Microsoft Windows [Version 10.0.22621.1413]

... with the word Microsoft highlighted

Actual behavior

←[7mMicrosoft←[0m Windows [Version 10.0.22621.1413]

That is, the ANSI escape sequences meant to highlight the matching part of the line aren't rendered as such.

Error details

No response

Environment data

PowerShell 7.4.0-preview.2 on Windows

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.Resolution-ExternalThe issue is caused by external component(s).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions