Restore the TTY to its original state.

def stop(self):
        """
        Restore the TTY to its original state.
        """
        _curses.nocbreak()
        self.window.keypad(0)
        _curses.echo()
        _curses.resetty()
        _curses.endwin()
        self.running = False