Home
last modified time | relevance | path

Searched refs:getColorDepth (Results 1 – 11 of 11) sorted by relevance

/third_party/node/test/pseudo-tty/
Dtest-tty-color-support.js12 const depth = writeStream.getColorDepth();
76 const actual = writeStream.getColorDepth(env);
95 assert.strictEqual(writeStream.getColorDepth({}), depth1);
97 assert.strictEqual(writeStream.getColorDepth({}), depth2);
Dconsole_colors.js5 process.stdout.getColorDepth = () => 8; function
6 process.stderr.getColorDepth = () => 8; function
/third_party/node/lib/internal/
Dtty.js106 function getColorDepth(env = process.env) { function
224 return count <= 2 ** getColorDepth(env);
228 getColorDepth, property
/third_party/node/lib/
Dtty.js35 getColorDepth,
123 WriteStream.prototype.getColorDepth = getColorDepth; method in WriteStream
/third_party/node/doc/api/
Dtty.md172 ### `writeStream.getColorDepth([env])`
237 [`writeStream.getColorDepth()`][].
299 [`writeStream.getColorDepth()`]: #tty_writestream_getcolordepth_env
Dconsole.md118 and the value returned by `getColorDepth()` on the respective stream. This
Dassert.md68 [getColorDepth()](tty.md#tty_writestream_getcolordepth_env) documentation.
/third_party/node/lib/internal/console/
Dconstructor.js308 typeof stream.getColorDepth === 'function' ?
309 stream.getColorDepth() > 2 : true);
/third_party/node/doc/changelogs/
DCHANGELOG_V9.md336 …* 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…
DCHANGELOG_V12.md3545 …* check colors with `.getColorDepth()` (Vladislav Kaminsky) [#26261](https://github.com/nodejs/nod…
3695 …commit/82b3ee776b)] - **(SEMVER-MAJOR)** **repl**: check colors with .getColorDepth() (Vladislav K…
DCHANGELOG_V10.md4657 …://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…