def _create_ansi_color_dict(color_cls):
    """ Create a table that maps the 16 named ansi colors to their Windows code. """
    return {'ansidefault': color_cls.BLACK, 'ansiblack': color_cls.BLACK,
        'ansigray': color_cls.GRAY, 'ansibrightblack': color_cls.BLACK |
        color_cls.INTENSITY, 'ansiwhite': color_cls.GRAY | color_cls.
        INTENSITY, 'ansired': color_cls.RED, 'ansigreen': color_cls.GREEN,
        'ansiyellow': color_cls.YELLOW, 'ansiblue': color_cls.BLUE,
        'ansimagenta': color_cls.MAGENTA, 'ansicyan': color_cls.CYAN,
        'ansibrightred': color_cls.RED | color_cls.INTENSITY,
        'ansibrightgreen': color_cls.GREEN | color_cls.INTENSITY,
        'ansibrightyellow': color_cls.YELLOW | color_cls.INTENSITY,
        'ansibrightblue': color_cls.BLUE | color_cls.INTENSITY,
        'ansibrightmagenta': color_cls.MAGENTA | color_cls.INTENSITY,
        'ansibrightcyan': color_cls.CYAN | color_cls.INTENSITY}
