JADE: Dobrej napad, ale to by si clovek neprocvicil bash funkce ... ;-|
Spise slo o to, upozornit zacatecniky, ze existuje watch, figlet, poslat font... atp.
Jinak cilem bylo tohle:
#!/bin/bash
# Prepare Console
prep_term() {
tput setaf 7
tput bold
}
# Print Phase Function
prn_phase() {
clear
for i in `seq $1 $2 $3`; do
clear
echo "$4" | figlet -c -t -S -f cricket
echo "$i" | figlet -c -t -S -f cricket
sleep 1
done
}
# MAIN PROGRAM
prep_term
while [ 0 -eq 0 ]; do
prn_phase 1 1 5 "INHALE"
prn_phase 1 1 1 "HOLD"
prn_phase 5 -1 1 "EXHALE"
done