Terminate the curses screen.
(self)
| 470 | self._stdscr.refresh() |
| 471 | |
| 472 | def _screen_terminate(self): |
| 473 | """Terminate the curses screen.""" |
| 474 | |
| 475 | self._stdscr.keypad(0) |
| 476 | curses.nocbreak() |
| 477 | curses.echo() |
| 478 | curses.endwin() |
| 479 | |
| 480 | try: |
| 481 | # Remove SIGINT handler. |
| 482 | signal.signal(signal.SIGINT, signal.SIG_DFL) |
| 483 | except ValueError: |
| 484 | # Can't catch signals unless you're the main thread. |
| 485 | pass |
| 486 | |
| 487 | def run_ui(self, |
| 488 | init_command=None, |
no outgoing calls
no test coverage detected