fix: use __MIRE_PROMPT_READY__ as the common marker

This commit is contained in:
2026-03-21 21:10:43 +00:00
parent fe42c40d1e
commit 97a4696a1c
8 changed files with 90 additions and 76 deletions
+6 -2
View File
@@ -388,8 +388,12 @@ while [ "$#" -gt 0 ]; do
;;
esac
done
/bin/stty -echo 2>/dev/null || true
if [ "${MIRE_COMPARE_MARKER:-0}" = "1" ]; then
/bin/stty -echo 2>/dev/null || true
printf '%s\n' '__MIRE_PROMPT_READY__'
else
/bin/stty -echo 2>/dev/null || true
fi
while IFS= read -r line || [ -n "$line" ]; do
printf '%s\n' "$line"
if [ "$line" = "exit" ]; then