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: image 5 debug console: image 6

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

Most upvoted comments

@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…

image