Example #1
0
    def ctrld(self):
        proxy = self.get_backend_proxy()
        if not proxy:
            return

        if get_shell().has_pending_input():
            messagebox.showerror(
                "Can't perform this action",
                "Ctrl+D only has effect on an empty line / prompt.\n"
                + "Submit current input (press ENTER) and try again",
            )
            return

        proxy.send_command(EOFCommand())
        self._set_state("running")
Example #2
0
 def _soft_reboot_and_run_main(self):
     self._send_msg(EOFCommand())
Example #3
0
 def soft_reboot(self):
     self._send_msg(EOFCommand())