Searched refs:getColorDepth (Results 1 – 11 of 11) sorted by relevance
12 const depth = writeStream.getColorDepth();76 const actual = writeStream.getColorDepth(env);95 assert.strictEqual(writeStream.getColorDepth({}), depth1);97 assert.strictEqual(writeStream.getColorDepth({}), depth2);
5 process.stdout.getColorDepth = () => 8; function6 process.stderr.getColorDepth = () => 8; function
106 function getColorDepth(env = process.env) { function224 return count <= 2 ** getColorDepth(env);228 getColorDepth, property
35 getColorDepth,123 WriteStream.prototype.getColorDepth = getColorDepth; method in WriteStream
172 ### `writeStream.getColorDepth([env])`237 [`writeStream.getColorDepth()`][].299 [`writeStream.getColorDepth()`]: #tty_writestream_getcolordepth_env
118 and the value returned by `getColorDepth()` on the respective stream. This
68 [getColorDepth()](tty.md#tty_writestream_getcolordepth_env) documentation.
308 typeof stream.getColorDepth === 'function' ?309 stream.getColorDepth() > 2 : true);
336 …* Add getColorDepth function to determine if terminal supports colors. (Ruben Bridgewater) [#17615…473 …com/nodejs/node/commit/ead727c274)] - **(SEMVER-MINOR)** **tty**: add getColorDepth function (Rube…
3545 …* check colors with `.getColorDepth()` (Vladislav Kaminsky) [#26261](https://github.com/nodejs/nod…3695 …commit/82b3ee776b)] - **(SEMVER-MAJOR)** **repl**: check colors with .getColorDepth() (Vladislav K…
4657 …://github.com/nodejs/node/commit/ce2ed584c8)] - **test**: improve tty.getColorDepth coverage (Rube…4669 …ub.com/nodejs/node/commit/7514eb3cff)] - **test**: actually test tty `getColorDepth()` (Jeremiah S…