'Initialize a new TUI window in terminal.'

def __init__(self):

    locale.setlocale(locale.LC_ALL, '')
    self._stdscr = curses.initscr()
    curses.start_color()
    curses.noecho()
    curses.cbreak()
    curses.curs_set(0)
    curses.use_default_colors()
    for (i, color) in enumerate(self.colorpairs):
        curses.init_pair((i + 1), *color)
