diff --git a/.gitignore b/.gitignore index ba01919..dcbe41c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ .coyote/** .sisyphus/** .coyote-project.json +.coyote/memory/ diff --git a/assets/functions/utils/prompt-utils.sh b/assets/functions/utils/prompt-utils.sh index 943afd6..5dd89e0 100755 --- a/assets/functions/utils/prompt-utils.sh +++ b/assets/functions/utils/prompt-utils.sh @@ -186,7 +186,9 @@ input() { } confirm() { - trap "stty echo; exit" EXIT + # stty targets stdin, which is /dev/null when the host spawns tool scripts; + # point it at the real terminal and stay quiet when there isn't one. + trap "stty echo /dev/null; exit" EXIT _prompt_text "$1 (y/N)" echo -en "\033[36m\c " >&2 @@ -229,7 +231,7 @@ list() { declare first_row first_row=$((last_row - opts_count + 1)) - trap "_cursor_blink_on; stty echo; exit" 2 + trap "_cursor_blink_on; stty echo /dev/null; exit" 2 _cursor_blink_off @@ -275,7 +277,7 @@ checkbox() { declare first_row first_row=$((last_row - opts_count + 1)) - trap "_cursor_blink_on; stty echo; exit" 2 + trap "_cursor_blink_on; stty echo /dev/null; exit" 2 _cursor_blink_off @@ -403,7 +405,7 @@ range() { declare current_row current_row=$((first_row - 1)) - trap "_cursor_blink_on; stty echo; exit" 2 + trap "_cursor_blink_on; stty echo /dev/null; exit" 2 _cursor_blink_off