Skip to content

Commit c3c7b19

Browse files
fix: embed live countdown into prompt line, drop separate counter
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7dd5b48 commit c3c7b19

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/libraries/misc.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,13 @@ blueprint_custom_script_confirm() {
113113
return 0
114114
fi
115115

116-
PRINT INPUT "Extension has a custom $phase script. Press \x1b[32;1m[ENTER]\x1b[0m to continue or \x1b[31;1m^C\x1b[0m to abort. (auto-proceeding in 10s)"
117116
hide_progress
118117

119118
deadline=$((SECONDS + 10))
120119

121120
while [[ $SECONDS -lt $deadline ]]; do
122121
remaining=$((deadline - SECONDS))
123-
printf "\r \x1b[2m%ds remaining..\x1b[0m " "$remaining"
122+
printf "\r\033[2m%s\033[0m \x1b[35;1mInput:\x1b[0m Extension has a custom %s script. Press \x1b[32;1m[ENTER]\x1b[0m to continue or \x1b[31;1m^C\x1b[0m to abort. \x1b[2m(auto-proceeding in %ds)\x1b[0m " "$(date +"%H:%M:%S")" "$phase" "$remaining"
124123
read -r -t 1 && { printf "\r\033[K"; return 0; }
125124
done
126125

0 commit comments

Comments
 (0)