You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
410 B
27 lines
410 B
3 years ago
|
#!/bin/bash
|
||
|
|
||
|
# Just having fun with unicode characters
|
||
|
#symbols=("\U25DC" "\U25DD" "\U25DE" "\U25DF") # Circle outlines
|
||
|
symbols=("\U25CB" "\U25D4" "\U25D1" "\U25D5" "\U25CF") # Pie chart
|
||
|
|
||
|
trap ctrl_c INT
|
||
|
function ctrl_c {
|
||
|
tput cub1
|
||
|
tput cnorm
|
||
|
echo
|
||
|
exit
|
||
|
}
|
||
|
|
||
|
tput civis
|
||
|
|
||
|
index=0
|
||
|
while true; do
|
||
|
|
||
|
echo -en ${symbols[$index]}
|
||
|
let index=$index+1
|
||
|
[ $index -eq ${#symbols[@]} ] && index=0
|
||
|
sleep .25
|
||
|
tput cub1
|
||
|
|
||
|
done
|