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

Method _screen_init

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

Screen initialization. Creates curses stdscr and initialize the color pairs for display.

(self)

Source from the content-addressed store, hash-verified

392 right=self._output_pad_screen_width)
393
394 def _screen_init(self):
395 """Screen initialization.
396
397 Creates curses stdscr and initialize the color pairs for display.
398 """
399 # If the terminal type is color-ready, enable it.
400 if os.getenv("COLORTERM") in _COLOR_READY_COLORTERMS:
401 os.environ["TERM"] = _COLOR_ENABLED_TERM
402 self._stdscr = curses.initscr()
403 self._command_window = None
404 self._screen_color_init()
405
406 def _screen_color_init(self):
407 """Initialization of screen colors."""

Callers 1

__init__Method · 0.95

Calls 1

_screen_color_initMethod · 0.95

Tested by

no test coverage detected