I am quite new to bash and am trying to figure out how I could print the following menu in a dialog in bash.
#!/bin/bash
while true
do
echo "Welcome to my menu!"
echo "Press 1 to see users"
echo "Press 2 for Calendar"
echo "Press 3 to exit"
echo -e "\n"
echo -e "Enter your selection \c"
read answer
case "$answer" in
1) who
uptime ;;
2) cal ;;
q) exit ;;
esac
done
I want the user to be able to click on the options instead of pressing a number like in this code.