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

Show ANSI escape code for console.log. #5193

Open
Et7f3 opened this issue Nov 24, 2019 · 1 comment
Open

Show ANSI escape code for console.log. #5193

Et7f3 opened this issue Nov 24, 2019 · 1 comment

Comments

@Et7f3
Copy link

Et7f3 commented Nov 24, 2019

Chrome web browser support Ainsi sequence like tty does.

console.log("\033[34mHello \033[36mThe\033[0mre", "!");

image

from this test it is a subset of all ainsi support the reset isn't available.

Full docs https://en.wikipedia.org/wiki/ANSI_escape_code

I have chrome 78 on windows 10.

This is also supported in nodejs, from the start ?

@Ugoku
Copy link
Contributor

Ugoku commented Nov 26, 2019

Other browsers:

  • Firefox 70 on Ubuntu: nope
  • IE10 on Windows 10: nope
  • Edge 18 on Windows 10: nope

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

No branches or pull requests

3 participants