diff --git a/build_tools/pexpect_helper.py b/build_tools/pexpect_helper.py index e8bb143e4..c553efef9 100644 --- a/build_tools/pexpect_helper.py +++ b/build_tools/pexpect_helper.py @@ -130,7 +130,7 @@ class Message(object): return Message(Message.DIR_OUTPUT, text, when) # Sequences for moving the cursor below the commandline. This happens before executing. -MOVE_TO_END: str = r"(?:\r\n|\x1b\[2 q)" +MOVE_TO_END: str = r"(?:\r\n|\x1b\[2 q|)" TO_END: str = MOVE_TO_END + r"[^\n]*" TO_END_SUFFIX: str = r"[^\n]*" + MOVE_TO_END