I often use something like read -e -p \"> All good ? (y/n)\" -n 1 confirm; to ask a confirm to the user.
read -e -p \"> All good ? (y/n)\" -n 1 confirm;
I\'m looking for a way to colorize the outpu
this work for me :
BC=$'\e[4m' EC=$'\e[0m' while true; do read -p "Do you wish to copy table from ${BC}$HOST $PORT${EC} to ${BC}$LOCAL_HOST $LOCAL_PORT${EC}? (y or n)" yn case $yn in .... done
Results are as follows:
more example ,see the show case ,link is :
mysqlis