remotelogin/connections/terminal/__init__.py
def send_cmd_new_prompt_context(
        self, cmd, expected_prompt=None, exit_cmd="exit", **send_kwargs
    ):
        """ send a command and wait for a new prompt before continuing and create a terminal in terminal context """
        curr_prompt = self.prompt
        self.send_cmd(cmd, **send_kwargs).expect_new_prompt(expected_prompt)
        try:
            yield
        finally:
            if exit_cmd:
                self.send("\n").send_cmd(exit_cmd)
            self.expect_new_prompt(curr_prompt)
 send a command and wait for a new prompt before continuing and create a terminal in terminal context 
send a command and wait for a new prompt before continuing and create a terminal in terminal context
send a command and wait for a new prompt before continuing and create a terminal in terminal context
def send_cmd_new_prompt_context(
        self, cmd, expected_prompt=None, exit_cmd="exit", **send_kwargs
    ):
        curr_prompt = self.prompt
        self.send_cmd(cmd, **send_kwargs).expect_new_prompt(expected_prompt)
        try:
            yield
        finally:
            if exit_cmd:
                self.send("\n").send_cmd(exit_cmd)
            self.expect_new_prompt(curr_prompt)
def send_cmd_new_prompt_context ( self , cmd , expected_prompt = None , exit_cmd = "exit" , ** send_kwargs ) : curr_prompt = self . prompt self . send_cmd ( cmd , ** send_kwargs ) . expect_new_prompt ( expected_prompt ) try : yield finally : if exit_cmd : self . send ( "\n" ) . send_cmd ( exit_cmd ) self . expect_new_prompt ( curr_prompt )
send a command and wait for a new prompt before continuing and create a terminal in terminal context
send a command and wait for a new prompt before continuing and create a terminal in terminal context
""" send a command and wait for a new prompt before continuing and create a terminal in terminal context """
self
cmd
expected_prompt
exit_cmd