fix: cosmetic fix after improved bash tool handling

This commit is contained in:
2026-08-15 17:31:32 -06:00
parent f57bd21ee4
commit 95a8c3df44
2 changed files with 7 additions and 4 deletions
+1
View File
@@ -8,3 +8,4 @@
.coyote/** .coyote/**
.sisyphus/** .sisyphus/**
.coyote-project.json .coyote-project.json
.coyote/memory/
+6 -4
View File
@@ -186,7 +186,9 @@ input() {
} }
confirm() { 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/tty 2>/dev/null; exit" EXIT
_prompt_text "$1 (y/N)" _prompt_text "$1 (y/N)"
echo -en "\033[36m\c " >&2 echo -en "\033[36m\c " >&2
@@ -229,7 +231,7 @@ list() {
declare first_row declare first_row
first_row=$((last_row - opts_count + 1)) first_row=$((last_row - opts_count + 1))
trap "_cursor_blink_on; stty echo; exit" 2 trap "_cursor_blink_on; stty echo </dev/tty 2>/dev/null; exit" 2
_cursor_blink_off _cursor_blink_off
@@ -275,7 +277,7 @@ checkbox() {
declare first_row declare first_row
first_row=$((last_row - opts_count + 1)) first_row=$((last_row - opts_count + 1))
trap "_cursor_blink_on; stty echo; exit" 2 trap "_cursor_blink_on; stty echo </dev/tty 2>/dev/null; exit" 2
_cursor_blink_off _cursor_blink_off
@@ -403,7 +405,7 @@ range() {
declare current_row declare current_row
current_row=$((first_row - 1)) current_row=$((first_row - 1))
trap "_cursor_blink_on; stty echo; exit" 2 trap "_cursor_blink_on; stty echo </dev/tty 2>/dev/null; exit" 2
_cursor_blink_off _cursor_blink_off