Skip to content

ANSI color output in webview?!? #26944

Answered by jens-maus
jens-maus asked this question in Actions
Discussion options

You must be logged in to vote

Ok, after some more investigation I could solve the problem myself. I simply had to add the command-line option –colors when executing mocha (see jens-maus/occu-test@0a57c8f).

So somehow with the default environment of GitHub Actions mocha could not identify itself that it is running within a TTY enabled device and thus enable ANSI color output itself. See here (mochajs/mocha#1304) for similar discussions to force mocha to output ANSI colors on non tty devices. So the remaining question that might be there is, why isn’t the GitHub Actions environment not identified as a proper TTY device by mocha while within travis there isn’t any issue and mocha outputs all content using ANSI colors?!?

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants