'Return the key pressed or -1.
Wait until `enabled` and loop internally every stdscr.timeout()
msecs, releasing the inputlock.
:returns: char or None if disabled while in here'

def get_next_char(self):

    self.enabled.wait()
    while self.enabled.is_set():
        with self.inputlock:
            char = self.ui.stdscr.getch()
        if (char != (-1)):
            (yield char)
