Termcolor Utility

The termcolor utility provides means to detect whether a system environment technically supports coloured output on a terminal (sys.stdout) or not. It relies on information provided by the file object itself and sys.platform.

xobox.utils.termcolor.supports_color()[source]

Test if the running system’s terminal supports color output.

Returns:True if colors are supported, otherwise False
Return type:bool