I have only found how to wait for user input. However, I only want to pause so that my while true doesn\'t crash my computer.
while true
I tried pause(1)
pause(1)
use trap to pause and check command line (in color using tput) before running it
trap
tput
trap 'tput setaf 1;tput bold;echo $BASH_COMMAND;read;tput init' DEBUG
press any key to continue
use with set -x to debug command line
set -x