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

Uncaught errors with ANSI color escape sequence gets uncolored on windows #3734

Closed
sorgloomer opened this issue Nov 10, 2015 · 4 comments
Closed
Labels
windows Issues and PRs related to the Windows platform.

Comments

@sorgloomer
Copy link

Running the below code on node v5.0.0 win10 x64 prints the error message uncolored in the default windows 10 terminal. This happens only with thrown errors, colored text sent to stderr (with console.error) remains colored.

console.log('\x1b[32mgreen\x1b[39m');
console.error('\x1b[31mred\x1b[39m');
throw new Error('\x1b[33myellow\x1b[39m');

image

@Fishrock123
Copy link
Contributor

Confirmed working on OS X.

@Fishrock123 Fishrock123 added the windows Issues and PRs related to the Windows platform. label Nov 10, 2015
@Trott
Copy link
Member

Trott commented Jun 5, 2016

Can anybody confirm that this is still a problem on Node.js 6.2.1? Would be nice to at least label it confirmed-bug if others can reproduce it. @nodejs/platform-windows

@seishun
Copy link
Contributor

seishun commented Jun 5, 2016

Can't reproduce this on Node.js 6.2.1 on Windows 10. I suggest closing.

@sorgloomer
Copy link
Author

sorgloomer commented Jun 5, 2016

Looks good, can't reproduce it anymore. This issue is resolved. Thanks!

image

@Trott Trott closed this as completed Jun 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

4 participants