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

Method _screen_launch

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

Launch the curses screen.

(self, enable_mouse_on_start)

Source from the content-addressed store, hash-verified

443 self._default_color_pair = self._color_pairs[cli_shared.COLOR_WHITE]
444
445 def _screen_launch(self, enable_mouse_on_start):
446 """Launch the curses screen."""
447
448 curses.noecho()
449 curses.cbreak()
450 self._stdscr.keypad(1)
451
452 self._mouse_enabled = self.config.get("mouse_mode")
453 self._screen_set_mousemask()
454 self.config.set_callback(
455 "mouse_mode",
456 lambda cfg: self._set_mouse_enabled(cfg.get("mouse_mode")))
457
458 self._screen_create_command_window()
459
460 def _screen_create_command_window(self):
461 """Create command window according to screen size."""

Callers 1

run_uiMethod · 0.95

Calls 5

_screen_set_mousemaskMethod · 0.95
_set_mouse_enabledMethod · 0.95
set_callbackMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected