Skip to content

tty: add hasColors function#26247

Closed
BridgeAR wants to merge 1 commit intonodejs:masterfrom
BridgeAR:add-tty-has-colors
Closed

tty: add hasColors function#26247
BridgeAR wants to merge 1 commit intonodejs:masterfrom
BridgeAR:add-tty-has-colors

Conversation

@BridgeAR
Copy link
Copy Markdown
Member

This adds a small wrapper around the getColorDepth function to check
if the stream supports at least a specific amount of colors. This is
convenient as the other API is not as straight forward and most use
cases likely only want to know if a specific amount of colors is
supported or not.

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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. semver-minor PRs that contain new features and should be released in the next minor version. tty Issues and PRs related to the tty subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants