def _write_color_ansi ( fp , text , color ) : fp . write ( esc_ansicolor ( color ) ) fp . write ( text ) fp . write ( AnsiReset )
python write file ansi
Colorize text with given color .
def _write_color_ansi (fp, text, color):
    """Colorize text with given color."""
    fp.write(esc_ansicolor(color))
    fp.write(text)
    fp.write(AnsiReset)