Merge pull request #3041 from chewitt/resize-timer

busybox: quit countdown timers on keyboard input
This commit is contained in:
MilhouseVH 2018-10-23 10:59:31 +01:00 committed by GitHub
commit 67fd315747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ ProgressTask_Countdown() {
while [ ${countfrom} -gt 0 ]; do
echo ${countfrom} | awk '{ printf "\b\b%2d", $1 }'
sleep 1
read -r -s -t1 && break
countfrom=$((countfrom - 1))
done