Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tty: add hasColors function #26247

Closed
wants to merge 1 commit into from

Commits on Mar 5, 2019

  1. tty: add hasColors function

    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.
    BridgeAR committed Mar 5, 2019
    Configuration menu
    Copy the full SHA
    42af1e0 View commit details
    Browse the repository at this point in the history