Skip to content

Show ANSI escape code for console.log. #5193

@Et7f3

Description

@Et7f3

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 ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions