parameters: (self,
               init_command=None,
               title=None,
               title_color=None,
               enable_mouse_on_start=True)
return_statement: return exit_token
docstring: Run the CLI: See the doc of base_ui.BaseUI.run_ui for more details.
docstring_summary: Run the CLI: See the doc of base_ui.BaseUI.run_ui for more details.
docstring_tokens: Run the CLI : See the doc of base_ui . BaseUI . run_ui for more details .
function: def run_ui(self,
               init_command=None,
               title=None,
               title_color=None,
               enable_mouse_on_start=True):
      """Run the CLI: See the doc of base_ui.BaseUI.run_ui for more details."""
  
      # Only one instance of the Curses UI can be running at a time, since
      # otherwise they would try to both read from the same keystrokes, and write
      # to the same screen.
      self._single_instance_lock.acquire()
  
      self._screen_launch(enable_mouse_on_start=enable_mouse_on_start)
  
      # Optional initial command.
      if init_command is not None:
        self._dispatch_command(init_command)
  
      if title is not None:
        self._title(title, title_color=title_color)
  
      # CLI main loop.
      exit_token = self._ui_loop()
  
      if self._on_ui_exit:
        self._on_ui_exit()
  
      self._screen_terminate()
  
      self._single_instance_lock.release()
  
      return exit_token
function_tokens: def run_ui ( self , init_command = None , title = None , title_color = None , enable_mouse_on_start = True ) : # Only one instance of the Curses UI can be running at a time, since # otherwise they would try to both read from the same keystrokes, and write # to the same screen. self . _single_instance_lock . acquire ( ) self . _screen_launch ( enable_mouse_on_start = enable_mouse_on_start ) # Optional initial command. if init_command is not None : self . _dispatch_command ( init_command ) if title is not None : self . _title ( title , title_color = title_color ) # CLI main loop. exit_token = self . _ui_loop ( ) if self . _on_ui_exit : self . _on_ui_exit ( ) self . _screen_terminate ( ) self . _single_instance_lock . release ( ) return exit_token