title: Bash Script: Pause a countdown and resume it by pressing ENTER (or any)
body: <p>I have a task scheduler which runs a bash script. The task first opens a GIT Bash terminal, an opening message is shown ("The script is about to start in 60 seconds.") and runs a script at the end of that countdown.</p>
  
  <p>Now, I would like to improve user experience, allowing him/her to stop/resume the countdown or (without any intervention) leaving the script running automatically. So, this is the procedure flow:</p>
  
  <ol>
  <li>After the GIT Bash terminal open, allow the user to pause the script within the time frame shown by pressing ENTER or any other key;</li>
  <li>If no action taken by user, the countdown continues and the script will run at the end of the timeframe;</li>
  <li>If the user had pressed ENTER (or any other), then by pressing again ENTER (or any other key) he/she resumes the countdown and the will run immediately.</li>
  </ol>
  
  <p>I've tried to use the <code>read -p</code> but it is not good for me: I don't want the user action to fire something but to stop/pause the countdown instead (and then resume it).</p>