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

Method _interrupt_handler

tensorflow/python/debug/cli/curses_ui.py:1654–1663  ·  view source on GitHub ↗
(self, signal_num, frame)

Source from the content-addressed store, hash-verified

1652 self.INFO_MESSAGE_PREFIX + message, color=self._INFO_TOAST_COLOR_PAIR)
1653
1654 def _interrupt_handler(self, signal_num, frame):
1655 del signal_num # Unused.
1656 del frame # Unused.
1657
1658 if self._on_ui_exit:
1659 self._on_ui_exit()
1660
1661 self._screen_terminate()
1662 print("\ntfdbg: caught SIGINT; calling sys.exit(1).", file=sys.stderr)
1663 sys.exit(1)
1664
1665 def _mouse_mode_command_handler(self, args, screen_info=None):
1666 """Handler for the command prefix 'mouse'.

Callers

nothing calls this directly

Calls 2

_screen_terminateMethod · 0.95
exitMethod · 0.80

Tested by

no test coverage detected