I've seen this a bunch of times in bash programs. I need to start a timer that can be cancelled on key press. If no key is pressed it will execute a command. Using it for automated vagrant config.
What I want to see in the terminal:
Automatically installing in (10) ## this number should count down
Press any key to cancel automatic install.