Skip to content

Support forcing colors #17229

Closed
@grant0417

Description

@grant0417

If deno is not running in a tty there is currently no way to override it so that colors are shown

colors.setNoColor(runtimeOptions.noColor || !runtimeOptions.isTty);

Some options are:

  • FORCE_COLOR env var - this would ignore the other values and never set noColor
  • --color flag - similar to ls and other CLI utils
    • auto -> current behavior
    • never -> same behavior as NO_COLOR
    • always -> force color on

Metadata

Metadata

Assignees

Labels

suggestionsuggestions for new features (yet to be agreed)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions