gluetool.color module

Helpers for terminal color support.

class gluetool.color.Colors[source]

Bases: object

static style(text, **kwargs)
gluetool.color._style_colors(text, fg=None, bg=None, reset=True)[source]
gluetool.color._style_plain(text, **kwargs)[source]
gluetool.color.switch(enabled)[source]

Enable or disable output colors.

Parameters:enabled (bool) – whether terminal output should be colorized.