Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When outputTarget is a string, disable color #168

Open
thw0rted opened this issue Apr 14, 2021 · 0 comments
Open

When outputTarget is a string, disable color #168

thw0rted opened this issue Apr 14, 2021 · 0 comments

Comments

@thw0rted
Copy link

Console output uses ANSI color escape sequences (^[40m etc) to prettify the results, but if the user provides a string value for the outputTarget, human-readable output is dumped to a text file. As a rule, text editors / IDEs generally do not support escape sequences in text files, so this output mode is likely to be unusable. Color sequences should only be used when the output target is a TTY (console.log).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant