def _create_ansi_color_dict(color_cls):
 return {u'ansidefault': color_cls.BLACK, u'ansiblack': color_cls.BLACK, u'ansidarkgray': (color_cls.BLACK | color_cls.INTENSITY), u'ansilightgray': color_cls.GRAY, u'ansiwhite': (color_cls.GRAY | color_cls.INTENSITY), u'ansidarkred': color_cls.RED, u'ansidarkgreen': color_cls.GREEN, u'ansibrown': color_cls.YELLOW, u'ansidarkblue': color_cls.BLUE, u'ansipurple': color_cls.MAGENTA, u'ansiteal': color_cls.CYAN, u'ansired': (color_cls.RED | color_cls.INTENSITY), u'ansigreen': (color_cls.GREEN | color_cls.INTENSITY), u'ansiyellow': (color_cls.YELLOW | color_cls.INTENSITY), u'ansiblue': (color_cls.BLUE | color_cls.INTENSITY), u'ansifuchsia': (color_cls.MAGENTA | color_cls.INTENSITY), u'ansiturquoise': (color_cls.CYAN | color_cls.INTENSITY)}

def _create_ansi_color_dict ( color_cls ) : return { u'ansidefault' : color_cls . BLACK , u'ansiblack' : color_cls . BLACK , u'ansidarkgray' : ( color_cls . BLACK | color_cls . INTENSITY ) , u'ansilightgray' : color_cls . GRAY , u'ansiwhite' : ( color_cls . GRAY | color_cls . INTENSITY ) , u'ansidarkred' : color_cls . RED , u'ansidarkgreen' : color_cls . GREEN , u'ansibrown' : color_cls . YELLOW , u'ansidarkblue' : color_cls . BLUE , u'ansipurple' : color_cls . MAGENTA , u'ansiteal' : color_cls . CYAN , u'ansired' : ( color_cls . RED | color_cls . INTENSITY ) , u'ansigreen' : ( color_cls . GREEN | color_cls . INTENSITY ) , u'ansiyellow' : ( color_cls . YELLOW | color_cls . INTENSITY ) , u'ansiblue' : ( color_cls . BLUE | color_cls . INTENSITY ) , u'ansifuchsia' : ( color_cls . MAGENTA | color_cls . INTENSITY ) , u'ansiturquoise' : ( color_cls . CYAN | color_cls . INTENSITY ) }
create a table that maps the 16 named ansi colors to their windows code .