diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-03-15 14:09:17 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-04-12 23:23:56 +0200 |
commit | 57e8793c4393aa3fafd87f289b19078b1918c166 (patch) | |
tree | a1076b73991a97ed829cf0da0e5747d611ccec78 /test/parallel/test-console.js | |
parent | ce58df58d0360779d16d60ce3bb0e9979ec5fdf4 (diff) | |
download | android-node-v8-57e8793c4393aa3fafd87f289b19078b1918c166.tar.gz android-node-v8-57e8793c4393aa3fafd87f289b19078b1918c166.tar.bz2 android-node-v8-57e8793c4393aa3fafd87f289b19078b1918c166.zip |
console: add color support
Add a way to tell `Console` instances to either always use, never use
or auto-detect color support and inspect objects accordingly.
PR-URL: https://github.com/nodejs/node/pull/19372
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-console.js')
-rw-r--r-- | test/parallel/test-console.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-console.js b/test/parallel/test-console.js index 4bde18d888..4bac35c65d 100644 --- a/test/parallel/test-console.js +++ b/test/parallel/test-console.js @@ -51,9 +51,11 @@ const custom_inspect = { foo: 'bar', inspect: () => 'inspect' }; const strings = []; const errStrings = []; +process.stdout.isTTY = false; common.hijackStdout(function(data) { strings.push(data); }); +process.stderr.isTTY = false; common.hijackStderr(function(data) { errStrings.push(data); }); |