MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _screen_terminate

Method _screen_terminate

tensorflow/python/debug/cli/curses_ui.py:472–485  ·  view source on GitHub ↗

Terminate the curses screen.

(self)

Source from the content-addressed store, hash-verified

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,

Callers 2

run_uiMethod · 0.95
_interrupt_handlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected