def run(self, stdscr):
self.win = stdscr<EOL>curses.curs_set(<NUM_LIT:0>)<EOL>stdscr.timeout(<NUM_LIT:0>)<EOL>curses.init_pair(<NUM_LIT:1>, curses.COLOR_CYAN, curses.COLOR_BLACK)<EOL>curses.init_pair(<NUM_LIT:2>, curses.COLOR_GREEN, curses.COLOR_BLACK)<EOL>curses.init_pair(<NUM_LIT:3>, curses.COLOR_YELLOW, curses.COLOR_BLACK)<EOL>curses.init_pair(<NUM_LIT:4>, curses.COLOR_RED, curses.COLOR_BLACK)<EOL>while True:<EOL><INDENT>self.refresh(True)<EOL>now = time.time()<EOL>while time.time() - now < self._refresh_rate:<EOL><INDENT>time.sleep(<NUM_LIT:0.1>)<EOL>self.refresh(False)<EOL><DEDENT><DEDENT>
Initialize curses and refresh in a loop