miscset.sh.print_colored

miscset.sh.print_colored(text, color, reset=True)[source]

Print text to a console with ansi coloring.

Print a string, but add an ANSI color sequence.

Parameters
  • text (str) – A text to send to print.

  • color (str) – An ansi color to decorate text with.

  • reset (bool) – Clear decoration at the end of text.