Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup: fix comment about disabling support
  • Loading branch information
BridgeAR committed Feb 22, 2019
commit 6e82571903603aa281217c010ce29bfea12fa58a
5 changes: 1 addition & 4 deletions doc/api/tty.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,9 @@ may lie about what terminal is used.
To enforce a specific behavior without relying on `process.env` it is possible
to pass in an object with different settings.

Use the `NODE_DISABLE_COLORS` environment variable to enforce this function to
always return 1.

To enforce a specific color support, use one of the below environment settings.
This rule does not apply to Windows OS, CI environments, and some other rare
cases.
cases. Only disabling color support with `NODE_DISABLE_COLORS` will always work.

* 2 colors: `NODE_DISABLE_COLORS = 1`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works on Windows

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I updated the comment again to reflect that. PTAL.

* 16 colors: `TERM = 'console'`
Expand Down