diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-01-19 15:37:38 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-05 18:37:39 +0100 |
commit | d4fdec6b6593659cb38e1db9c8083d4fde9bcacb (patch) | |
tree | ecaf80b2517373e0cdb264c945209b7d12f65766 /test/pseudo-tty/test-tty-color-support.out | |
parent | a52c1ead0221a0c913d55d86ddddbe2ff3d04d5b (diff) | |
download | android-node-v8-d4fdec6b6593659cb38e1db9c8083d4fde9bcacb.tar.gz android-node-v8-d4fdec6b6593659cb38e1db9c8083d4fde9bcacb.tar.bz2 android-node-v8-d4fdec6b6593659cb38e1db9c8083d4fde9bcacb.zip |
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.
PR-URL: https://github.com/nodejs/node/pull/26247
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test/pseudo-tty/test-tty-color-support.out')
-rw-r--r-- | test/pseudo-tty/test-tty-color-support.out | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-tty-color-support.out b/test/pseudo-tty/test-tty-color-support.out new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/pseudo-tty/test-tty-color-support.out |