parameters: (self)
docstring: Screen initialization.
  
      Creates curses stdscr and initialize the color pairs for display.
docstring_summary: Screen initialization.
docstring_tokens: Screen initialization .
function: def _screen_init(self):
      """Screen initialization.
  
      Creates curses stdscr and initialize the color pairs for display.
      """
      # If the terminal type is color-ready, enable it.
      if os.getenv("COLORTERM") in _COLOR_READY_COLORTERMS:
        os.environ["TERM"] = _COLOR_ENABLED_TERM
      self._stdscr = curses.initscr()
      self._command_window = None
      self._screen_color_init()
function_tokens: def _screen_init ( self ) : # If the terminal type is color-ready, enable it. if os . getenv ( "COLORTERM" ) in _COLOR_READY_COLORTERMS : os . environ [ "TERM" ] = _COLOR_ENABLED_TERM self . _stdscr = curses . initscr ( ) self . _command_window = None self . _screen_color_init ( )