fenrir/play zone/waitForKey1

15 lines
208 B
Plaintext
Raw Normal View History

2019-10-17 17:55:39 -04:00
#!/bin/bash
echo "1"
echo "Press 'q' to exit"
count=0
while : ; do
read -n 1 k <&1
if [[ $k = q ]] ; then
printf "\nQuitting from the program\n"
break
else
((count=$count+1))
echo "Press 'q' to exit"
fi
done