fenrir/play zone/waitForKey1
2019-10-17 23:55:39 +02:00

15 lines
208 B
Bash
Executable File

#!/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