-
-
Save shiloong/5e1281fb07bcec15fd1d01b5e7b76a71 to your computer and use it in GitHub Desktop.
bash implementation of "press any key to continue"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -n 1 -r -s -p "Press any key to continue..." | |
# this will fire after the key is pressed | |
echo "\ncool" | |
exit 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment