devtool's console pannel not work compat terminal color string
Reported by
frankfen...@gmail.com,
Mar 15 2018
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
Steps to reproduce the problem:
1. i use node require('chalk') plugin in gulp,like this : var gulp = require('gutil');gulp.log(gutil.colors.yellow('####');
It is use terminal's color output, this article:
http://voidcanvas.com/make-console-log-output-colorful-and-stylish-in-browser-node/
2. on chrome devtool console pannel, it output "[33m####" , the [33m is terminal's color identifyer, just indicate use color yellow to output
3. chrome and terminal, use different method to output color string,but sometimes i debug program in ide or terminal, sometimes i debug program in chrome devtool, the two not compat method make console output looks stranged. please make chome console compat terminal's color string ?
What is the expected behavior?
What went wrong?
chome console not compat terminal's color string
Did this work before? N/A
Chrome version: 65.0.3325.162 Channel: stable
OS Version: OS X 10.12.6
Flash Version:
,
Mar 19 2018
Thanks for filing the issue! As per point no.3 in comment#0 by reporter, which says "please make chrome console compat terminal's color string ?" considering it as a feature request and marking it as Untriaged. Requesting someone from "Platform>DevTools" team to have a look into it.
,
Mar 19 2018
,
Mar 19 2018
Eric, would it be worth it to provide some sort of terminal compatibility in the console?
,
Mar 22 2018
Thanks for the report! I see the value in a common format for styling logs. A better place to discuss this would actually be with the standards folks on Github [1], who define the Console specification [2]. If they decide that browser Console's should support and maintain logic for terminal style format, we can do so. I'm marking this as WontFix for now, since we would like to get commitment from the spec writers first. Could you please submit an issue to them? [1] [1] https://github.com/whatwg/console/issues/ [2] https://console.spec.whatwg.org/ |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by viswa.karala@chromium.org
, Mar 15 2018