-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRocket.sh
More file actions
executable file
·50 lines (50 loc) · 758 Bytes
/
Rocket.sh
File metadata and controls
executable file
·50 lines (50 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
c1()
{
# space
echo " /\\ "
echo " | |"
echo " |__|"
echo " | |"
echo " |__|"
echo " | |"
echo " / \\"
space
sleep 0.1
}
space()
{
for ((q=0;q<$lines;q++)) do
if [ $q -eq 0 ]; then
echo " ^^^^"
elif [ $q -eq 1 ]; then
echo " ^^"
elif [ $q -eq 2 ]; then
echo " @@"
elif [ $q -eq 3 ]; then
echo " @@@@"
elif [ $q -eq 4 ]; then
echo " @@@@@@"
else
echo ""
fi
done
}
clear
lines=$(($(tput lines)+5))
reset=lines
STR=""
for ((j=0;j<$lines;j++))
do
STR+="\n"
done
echo -e "$STR""\033[8F\033[s"
while [ 1 = 1 ]
do reset=$(($(tput lines)+5))
if [ $lines -ge $reset ]; then
lines=0
fi
echo -e "\033[u "; c1
clear
((lines++))
done