예제 #1
0
    def create_window(self, profile=None, command=None):
        """Creates a new window.

    Arguments;
      profile: The name of the profile to use for the window's first session. If None, the default profile will be used.
      command: A command to run in lieu of the default command or login shell, if not None.
    """
        return window.FutureWindow(get_socket().request_create_tab(
            profile=profile, window=None, index=None, command=command))
예제 #2
0
 def split_pane(self, vertical=False, before=False, profile=None):
   return FutureSession(get_socket().request_split_pane(
     session=self.session_id, vertical=vertical, before=before, profile=profile))
예제 #3
0
 def send_text(self, text):
   return TextSender(get_socket().request_send_text(self.session_id, text))
예제 #4
0
 def create_inner(response):
   return get_socket().request_split_pane(
       session=self.get_session_id(), vertical=vertical, before=before, profile=profile)
예제 #5
0
 def create_inner(response):
   return get_socket().request_send_text(self.get_session_id(), text)
예제 #6
0
 def _refresh(self):
     logging.debug("Refreshing hierarchy")
     self.future = get_socket().request_hierarchy()
예제 #7
0
def run(function):
  function()
  sharedstate.get_socket().finish()
예제 #8
0
파일: window.py 프로젝트: unixfreaxjp/Therm
 def create_tab(self, profile=None, command=None, index=None):
   return tab.FutureTab(get_socket().request_create_tab(
     profile=profile, window=self.window_id, index=index, command=command))
예제 #9
0
파일: window.py 프로젝트: unixfreaxjp/Therm
 def create_inner(response):
   return get_socket().request_create_tab(
       profile=profile, window=self.get_window_id(), index=index, command=command)