better countdown
This commit is contained in:
parent
fd0c7a36d0
commit
391c02ebb7
|
@ -26,7 +26,9 @@ if init_day; then
|
||||||
if [ $secs_left -le 0 ]; then
|
if [ $secs_left -le 0 ]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
printf "\r\x1b[K%s secs left..." "$secs_left"
|
out=$(printf "\r\x1b[H\x1b[J";
|
||||||
|
printf "%s secs left..." "$secs_left" | toilet --gay -f slant)
|
||||||
|
echo -n "$out"
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
done
|
done
|
||||||
printf "\r\x1b[K"
|
printf "\r\x1b[K"
|
||||||
|
|
Loading…
Reference in New Issue