BColors

class maze.utils.bcolors.BColors

Colored command line output formatting

static format_colored(string: str, color: str) str

Format color of string.

Parameters:
  • string – the text to print

  • color – the bash color to use

Returns:

the color enriched text

static print_colored(string: str, color: str) None

Print color formatted string.

Parameters:
  • string – the text to print

  • color – the bash color to use