summaryrefslogtreecommitdiff
path: root/test/pseudo-tty/test-tty-color-support.out
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-07 01:48:02 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-19 16:41:22 +0100
commit273398a3d09601b978ace4e761f569baa94f0fd0 (patch)
tree4cfcc2043824bf9306f266f84be1c04ff917d12a /test/pseudo-tty/test-tty-color-support.out
parent1f1914c9d454875670a48ac943e98d78671b20c2 (diff)
downloadandroid-node-v8-273398a3d09601b978ace4e761f569baa94f0fd0.tar.gz
android-node-v8-273398a3d09601b978ace4e761f569baa94f0fd0.tar.bz2
android-node-v8-273398a3d09601b978ace4e761f569baa94f0fd0.zip
tty: add NO_COLOR and FORCE_COLOR support
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: https://github.com/nodejs/node/pull/26485 Refs: https://github.com/nodejs/node/pull/26248 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test/pseudo-tty/test-tty-color-support.out')
-rw-r--r--test/pseudo-tty/test-tty-color-support.out8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-tty-color-support.out b/test/pseudo-tty/test-tty-color-support.out
index e69de29bb2..f73fbdcd96 100644
--- a/test/pseudo-tty/test-tty-color-support.out
+++ b/test/pseudo-tty/test-tty-color-support.out
@@ -0,0 +1,8 @@
+(node:*) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
+(node:*) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
+(node:*) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
+(node:*) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
+(node:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set.
+(node:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set.
+(node:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set.
+(node:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set.