Args module

color_enabled

procedureextensionSource

Whether output to stream should be coloured, by the colour mode and then the environment.

Example↗
Args :: #import "Extensions/Args";

Args.set_color_mode(.ALWAYS);
assert(Args.color_enabled(.ERROR));
Args.set_color_mode(.AUTO);
color_enabled :: (stream: Stream) -> bool

Whether output to stream should be coloured, by the colour mode and then the environment.

Parameters

stream: Stream
the stream the output goes to.

Returns

bool
Example↗
Args :: #import "Extensions/Args";

Args.set_color_mode(.ALWAYS);
assert(Args.color_enabled(.ERROR));
Args.set_color_mode(.AUTO);

See also