code: def _write_color_colorama (fp, text, color):
      
      foreground, background, style = get_win_color(color)
      colorama.set_console(foreground=foreground, background=background,
        style=style)
      fp.write(text)
      colorama.reset_console()
docs: Colorize text with given color.