Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANSI sequence rendered differently: \u001b[0m\u001b[7m\u001b[1m\u001b[32m PASS \u001b[39m\u001b[22m\u001b[27m\u001b[0m #3201

Closed
be5invis opened this issue Oct 15, 2019 · 5 comments
Labels
Area-VT Virtual Terminal sequence support Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conpty For console issues specifically related to conpty Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@be5invis
Copy link

Environment

Windows build number: 18362.418
Windows Terminal version: 0.5.2762.0

Steps to reproduce

  • Install Node.js
  • Run this command in Node.js repl: console.log('\u001b[0m\u001b[7m\u001b[1m\u001b[32m PASS \u001b[39m\u001b[22m\u001b[27m\u001b[0m')

Expected behavior

A PASS is shown in black text and green background.

Actual behavior

In Windows terminal, PASS is shown in dark gray text rather than black. In the old console it is shown in black.

image

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Oct 15, 2019
@DHowett-MSFT
Copy link
Contributor

I believe this is a version of #293 or #2661. More likely 2661, but I can't get my debug tap working at the moment.

@j4james
Copy link
Collaborator

j4james commented Oct 15, 2019

Looking at this in the debugger, I can see the attributes coming through as:

\x1b[1m\x1b[30m\x1b[102m

So in one sense it has got the colors correct, sending through a black foreground with a bright green background, but it also includes the bold attribute, which then ends up making the foreground bright as well.

@DHowett-MSFT DHowett-MSFT added Area-VT Virtual Terminal sequence support Product-Conpty For console issues specifically related to conpty labels Oct 17, 2019
@DHowett-MSFT
Copy link
Contributor

Really, this should come out of ConPTY as 1;7;40;92 instead of 30;102 (#2661)... but it looks like we should at the very least suppress the brightness of the foreground when we make the bright foreground the background.

Since we don't support separate bold and bright, that'll also knock the bold attribute off ☹️

@DHowett-MSFT DHowett-MSFT added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Oct 17, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Oct 17, 2019
@DHowett-MSFT
Copy link
Contributor

More I think about this the closer I am to calling it a /dupe of #2661. Thanks again!

@ghost
Copy link

ghost commented Oct 21, 2019

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Oct 21, 2019
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Oct 21, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-VT Virtual Terminal sequence support Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conpty For console issues specifically related to conpty Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants