colorMode
constcolorMode:object
Defined in: src/render/color-mode.ts:30
Global colour toggle — disable to emit monochrome SGR (respects NO_COLOR).
Type Declaration
Section titled “Type Declaration”enabled
Section titled “enabled”Get Signature
Section titled “Get Signature”get enabled():
boolean
Whether foreground/background colour is emitted in terminal output.
Returns
Section titled “Returns”boolean
reset()
Section titled “reset()”reset():
void
Restore the environment-derived default.
Returns
Section titled “Returns”void
set(
value):void
Turn colour output on/off at runtime (e.g. an app setting, or a test).
Parameters
Section titled “Parameters”boolean
Returns
Section titled “Returns”void