vscode: can not output string with color in debug console after update to 1.22.1
- VSCode Version:1.22.1
- OS Version:win10
Steps to Reproduce:
1.i use colors package to colorful my output console.log(colors.green(‘hello’)+" world") this will output string “hello world” that “hello” with color green(debug console,terminal) this work fine in v1.21.1 2.after upgrade to v.1.22.1,it still work fine in terminal,but not work in debug console, all the text color is green,not only ‘hello’ terminal: debug console:
Does this issue occur when all extensions are disabled?: Yes/No yes
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 20 (19 by maintainers)
Commits related to this issue
- Merge pull request #49763 from danielfrankcom/#47457/rewrite Rewrite of ANSI code handling method — committed to microsoft/vscode by isidorn 6 years ago
- Merge pull request #49764 from danielfrankcom/#47457/background Added background ANSI colour codes — committed to microsoft/vscode by isidorn 6 years ago
@isidorn Sound good.
Unless you think it really matters, I’m going to match all numbers from 0-107 as valid codes despite certain ranges not really being included as real ANSI codes. (https://en.wikipedia.org/wiki/ANSI_escape_code)
While I’m at it, I’m adding background colours as they’re not currently supported. I’d like to add high-intensity colours too, but the colours all seem a bit off. I wanted to check, are there any sort of guidelines for maximum colour intensity? Certainly on the dark theme, yellow looks more like mud…