Function trv::sys::is_colourable#

Function Documentation#

bool trv::sys::is_colourable()#

Check if the program stdout is colourable.

Note

true if the environmental variable TRV_INTERACTIVE is set to "true" or "yes" or "1" or "on" and TERM contains "color", or false otherwise.

Returns:

{true, false}