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