FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: add examples for tty.getColorDepth() env by BridgeAR · Pull Request #26248 · nodejs/node · GitHub

/ node Public

doc: add examples for tty.getColorDepth() env - #26248

Closed
BridgeAR wants to merge 5 commits into
nodejs:masterfrom
BridgeAR:add-color-enforcing-docs
Closed

doc: add examples for tty.getColorDepth() env#26248
BridgeAR wants to merge 5 commits into
nodejs:masterfrom
BridgeAR:add-color-enforcing-docs

Conversation

Copy link
Copy Markdown
Member

This adds some examples what values can be used to enforce a specific
color support in Node.js.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

This adds some examples what values can be used to enforce a specific
color support in Node.js.
BridgeAR added the tty Issues and PRs related to the tty subsystem. label Feb 21, 2019

Copy link
Copy Markdown
Collaborator

nodejs-github-bot added the doc Issues and PRs related to the documentations. label Feb 21, 2019
Comment thread doc/api/tty.md Outdated
Comment thread doc/api/tty.md Outdated
Comment thread doc/api/tty.md Outdated
Trott and others added 3 commits February 21, 2019 21:52
Co-Authored-By: BridgeAR <ruben@bridgewater.de>
Co-Authored-By: BridgeAR <ruben@bridgewater.de>
BridgeAR added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Feb 21, 2019
Comment thread doc/api/tty.md
This rule does not apply to Windows OS, CI environments, and some other rare
cases.

* 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Copy link
Copy Markdown
Member Author

Hm... Hyper doesn't support 24 bit colors anymore and I used that in here as example. Therefore I consider doing something else instead of these examples as they could change over time without the change being reflected in the docs.

BridgeAR added wip Issues and PRs that are still a work in progress. and removed author ready PRs that have at least one approval, no outstanding review comments, and a CI started. labels Feb 22, 2019

BridgeAR commented Mar 7, 2019

Copy link
Copy Markdown
Member Author

Closed in favor of #26485

BridgeAR closed this Mar 7, 2019
BridgeAR added a commit to BridgeAR/node that referenced this pull request Mar 19, 2019
This adds support to enforce a specific color depth by checking the
`FORCE_COLOR` environment variable similar to `chalk`.

On top of that we also add support for the `NO_COLOR` environment
variable as suggested by https://no-color.org/.

PR-URL: nodejs#26485
Refs: nodejs#26248
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
targos pushed a commit to targos/node that referenced this pull request Mar 27, 2019
This adds support to enforce a specific color depth by checking the
`FORCE_COLOR` environment variable similar to `chalk`.

On top of that we also add support for the `NO_COLOR` environment
variable as suggested by https://no-color.org/.

PR-URL: nodejs#26485
Refs: nodejs#26248
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
targos pushed a commit that referenced this pull request Mar 27, 2019
This adds support to enforce a specific color depth by checking the
`FORCE_COLOR` environment variable similar to `chalk`.

On top of that we also add support for the `NO_COLOR` environment
variable as suggested by https://no-color.org/.

PR-URL: #26485
Refs: #26248
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
BridgeAR deleted the add-color-enforcing-docs branch January 20, 2020 11:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. tty Issues and PRs related to the tty subsystem. wip Issues and PRs that are still a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL