'Initialize the curses color pairs available.'

def init_colorpairs(self):

    self.colormap['white'] = 0
    curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_BLUE)
    self.colormap['banner'] = 1
    bcol = curses.COLOR_BLACK
    colors = (('black', curses.COLOR_BLACK, False), ('blue', curses.COLOR_BLUE, False), ('red', curses.COLOR_RED, False), ('purple', curses.COLOR_MAGENTA, False), ('cyan', curses.COLOR_CYAN, False), ('green', curses.COLOR_GREEN, False), ('orange', curses.COLOR_YELLOW, False))
    i = 1
    for (name, fcol, bold) in colors:
        i += 1
        self.colormap[name] = i
        curses.init_pair(i, fcol, bcol)
