From b387db0603d620550c3def23da912d4365963574 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 30 Oct 2025 15:41:10 +0400 Subject: [PATCH] interactive --- interactive.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interactive.bash b/interactive.bash index 71967b4..d97edb4 100755 --- a/interactive.bash +++ b/interactive.bash @@ -1,10 +1,12 @@ #!/usr/bin/env bash -read -p 'press [ENTER] to continue:' < /dev/tty +stty /dev/tty + +read -p 'press [ENTER] to continue:' echo REPLY=$REPLY choices=( one two three) select choice in "${choices[@]}"; do [[ -n $choice ]] && break -done < /dev/tty +done echo "choice is: $choice"