node/test/pseudo-tty
Ruben Bridgewater 8cafd83ba7
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>
2019-03-27 22:10:28 +01:00
..
console_colors.js console: auto-detect color support by default 2018-04-12 23:23:57 +02:00
console_colors.out console: auto-detect color support by default 2018-04-12 23:23:57 +02:00
no_dropped_stdio.js
no_dropped_stdio.out
no_interleaved_stdio.js
no_interleaved_stdio.out
pseudo-tty.status
ref_keeps_node_running.js tty: make process.binding('tty_wrap') internal 2018-08-29 12:28:51 -04:00
ref_keeps_node_running.out
stdin-setrawmode.js
stdin-setrawmode.out
test-assert-colors.js test: always activate colors if necessary 2019-03-04 15:33:00 +01:00
test-assert-colors.out assert: fix diff color output 2018-03-27 01:20:19 +01:00
test-assert-no-color.js test: assert diff no color 2018-11-14 00:55:58 +01:00
test-assert-no-color.out test: assert diff no color 2018-11-14 00:55:58 +01:00
test-assert-position-indicator.js test: add assert test for position indicator 2019-02-13 21:57:05 +01:00
test-assert-position-indicator.out test: add assert test for position indicator 2019-02-13 21:57:05 +01:00
test-async-wrap-getasyncid-tty.js doc,lib,test: capitalize comment sentences 2018-12-25 02:35:52 -05:00
test-async-wrap-getasyncid-tty.out
test-handle-wrap-isrefed-tty.js doc,lib,test: capitalize comment sentences 2018-12-25 02:35:52 -05:00
test-handle-wrap-isrefed-tty.out
test-readable-tty-keepalive.js stream: fix readable behavior for highWaterMark === 0 2018-08-10 17:16:59 +02:00
test-readable-tty-keepalive.out stream: fix readable behavior for highWaterMark === 0 2018-08-10 17:16:59 +02:00
test-set-raw-mode-reset-process-exit.js test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset-process-exit.out test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset-signal.js test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset-signal.out test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset.js test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-set-raw-mode-reset.out test: check TTY mode reset on exit 2018-06-01 10:52:06 +02:00
test-stderr-stdout-handle-sigwinch.js
test-stderr-stdout-handle-sigwinch.out console: lazy load process.stderr and process.stdout 2019-01-10 00:41:53 +01:00
test-stdin-write.js test: add stdin writable regression test 2018-10-17 11:17:10 -07:00
test-stdin-write.out test: add stdin writable regression test 2018-10-17 11:17:10 -07:00
test-stdout-read.in process: allow reading from stdout/stderr sockets 2018-10-17 11:17:02 -07:00
test-stdout-read.js process: allow reading from stdout/stderr sockets 2018-10-17 11:17:02 -07:00
test-stdout-read.out process: allow reading from stdout/stderr sockets 2018-10-17 11:17:02 -07:00
test-tty-color-support.js tty: add NO_COLOR and FORCE_COLOR support 2019-03-27 22:10:28 +01:00
test-tty-color-support.out tty: add NO_COLOR and FORCE_COLOR support 2019-03-27 22:10:28 +01:00
test-tty-isatty.js
test-tty-isatty.out
test-tty-stdin-call-end.js test: add process.stdin.end() TTY regression test 2018-10-17 11:12:14 -07:00
test-tty-stdin-call-end.out test: add process.stdin.end() TTY regression test 2018-10-17 11:12:14 -07:00
test-tty-stdin-end.js src: remove kFlagNoShutdown flag 2018-05-04 00:57:38 +02:00
test-tty-stdin-end.out src: remove kFlagNoShutdown flag 2018-05-04 00:57:38 +02:00
test-tty-stdout-end.js test: remove unused uncaughtException handler 2019-01-28 18:39:48 +01:00
test-tty-stdout-end.out
test-tty-stdout-resize.js
test-tty-stdout-resize.out
test-tty-stream-constructors.js
test-tty-stream-constructors.out
test-tty-window-size.js tty: make process.binding('tty_wrap') internal 2018-08-29 12:28:51 -04:00
test-tty-window-size.out
test-tty-wrap.js tty: make process.binding('tty_wrap') internal 2018-08-29 12:28:51 -04:00
test-tty-wrap.out
testcfg.py test: prepare test/pseudo-tty/testcfg.py Python 3 2018-12-17 23:17:53 +00:00