New issue
Advanced search Search tips

Issue 910550 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Bright ANSI colors are missing & 0 does not reset

Reported by harald.d...@gmail.com, Nov 30

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

Steps to reproduce the problem:
1. Open console.
2. Run code that prints ANSI escapes (see attached example code)

What is the expected behavior?
1. Text has the corresponding colors.
2. After the 0 code (reset), text returns to the default style.

What went wrong?
1. Some colors are missing, notably bright red & bright magenta for both foreground & background.
2. Reset code (0) is not applied and the whole line has the style of the applied modifiers.

For reference see the output from Node in a system terminal (CMD).

Did this work before? N/A 

Chrome version: 70.0.3538.110  Channel: stable
OS Version: 10.0
Flash Version:
 
ansi.png
42.3 KB View Download
ansi-node-reference.png
48.3 KB View Download
ansi.js
3.0 KB View Download

Comment 1 Deleted

Apparently, Chrome uses the "X" variant of ANSI colors: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
I think it's the worst choice of the 8 listed in the wiki because 
1) it's missing several bright colors
2) its main colors are overly bright
3) its bright colors are too washed out and desaturated
Relevant CL: r575767
Oh, that makes sense and I completely agree.
Labels: Needs-Triage-M70
Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)

Sign in to add a comment