diff --git a/contest/remote/lib/vm.py b/contest/remote/lib/vm.py index 82fe4105..d52f9c13 100644 --- a/contest/remote/lib/vm.py +++ b/contest/remote/lib/vm.py @@ -223,7 +223,8 @@ def start(self, cwd=None): self.procs = proc.children(recursive=True) + [proc] print(f"INFO{self.print_pfx} reached initial prompt") - self.cmd("PS1='xx__-> '") + # Drop prompt hooks, e.g. systemd's OSC 3008 context escape sequences + self.cmd("unset PROMPT_COMMAND PS0; PS1='xx__-> '") self.drain_to_prompt() off = len(self.log_out)