Skip to content

使用ANSI 转义码(ANSI escape code)方式显示颜色 #16

@pharaoh2012

Description

@pharaoh2012

Feature Request

建议使用ANSI 转义码(ANSI escape code)方式显示颜色,在浏览器和Nodejs控制台都可以正确显示,当前颜色方案只能在浏览器中起作用。

What does the proposed API examples?

Other reference [Optional]

例如:下列代码在浏览器和控制台都可以显示:
console.info("\u001b[45m A \u001b[41m B \u001b[42m C \u001b[43m D \u001b[0m");

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions