Skip to content

termcolors

ngtools.local.termcolors

Color tags that can be used in a terminal prompt.

tcolors

Namespace that maps colors to integers for use in terminals.

fg

Foreground colors.

bright

Bright foreground colors.

bg

Background colors.

bright

Bright background colors.

bcolors

Namespace that maps colors to tokens for use in bash terminals.

icolors

Namespace that maps colors to tokens for use in bash input prompts.

bformat

Namespace for formatting functions, for use in bash terminals.

iformat

Namespace for formatting functions, for use in bash input prompts.

supports_color

supports_color()

Return True if the running system's terminal supports color, and False otherwise.

rgb_to_ansi256

rgb_to_ansi256(r, g, b)

Convert RGB [0-255] to ANSI256 code.