Skip to content

Incorrectly displayed ANSI escape code ESC[40m #13513

Closed

Description

Windows Terminal version

1.13.11431.0

Windows build number

10.0.19043.0

Other Software

PowerShell 7.2.5

Steps to reproduce

Enter the command in 'PowerShell':

> "`e[30;40mtest`e[0m"

Expected Behavior

ANSI escape codes ESC[30m and ESC[40m is ANSI color 'Black'. It should be the same color, so there should be NO visible text in color ESC[30m on background ESC[40m.

It is said about it here:
https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters

Actual Behavior

The text of color ESC[30m is visible on background ESC[40m:

test-in-powershell-wt

In the color scheme ('Campbell Powershell'):

color-scheme-campbell-powershell

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jul 15, 2022
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Jul 15, 2022
  3. zadjii-msft commented on Jul 15, 2022

    @zadjii-msft
    Member

    I'm pretty sure you're running in to the issue described in #6810, tracked originally in #6807, and ultimately fixed by #13352 in Preview v1.15.186

  4. ilyachalov commented on Jul 15, 2022

    @ilyachalov
    Author

    Mike Griese (@zadjii-msft) You're right.

    I installed 'Windows Terminal Preview', version: 1.15.1862.0. Everything looks correct there:

    campbell-powershell-ok

    Also everything is correct for the code ESC[37;47m.

    Good job!

    As I understand it, this correction will appear in the next stable version?

  5. DHowett commented on Jul 15, 2022

    @DHowett
    Member

    As I understand it, this correction will appear in the next stable version?

    Indeed! :)

  6. added
    Resolution-AnsweredRelated to questions that have been answered
    and removed
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    Needs-Tag-FixDoesn't match tag requirements
    on Jul 15, 2022
  7. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionFor questions or discussionNeeds-Tag-FixDoesn't match tag requirementsResolution-AnsweredRelated to questions that have been answered

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions