Skip to content

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

@mklement0

Description

@mklement0

Prerequisites

Steps to reproduce

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

Note:

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions