-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
130 lines (111 loc) · 13.7 KB
/
main.go
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package main
import (
"fmt"
"os"
"time"
"golang.org/x/term"
)
func main() {
fmt.Print("Reading package list... ")
time.Sleep(time.Millisecond * 200)
fmt.Println("apt.")
time.Sleep(time.Millisecond * 100)
fmt.Print("Building dependency tree... ")
time.Sleep(time.Millisecond * 100)
fmt.Println("apt.")
time.Sleep(time.Millisecond * 200)
fmt.Print("Reading state information... ")
time.Sleep(time.Millisecond * 300)
fmt.Println("apt.")
time.Sleep(time.Millisecond * 800)
fmt.Print("Receiving objects... ")
time.Sleep(time.Millisecond * 1000)
fmt.Println("apt.")
time.Sleep(time.Millisecond * 1000)
isFirst := true
fmt.Print("{ ")
for i := 0; i < 200; i++ {
if isFirst {
isFirst = false
} else {
fmt.Print(", ")
}
fmt.Print("あー")
time.Sleep(time.Millisecond)
fmt.Print("ぱ")
time.Sleep(time.Millisecond)
fmt.Print("つ ")
time.Sleep(time.Millisecond)
fmt.Print("あ")
time.Sleep(time.Millisecond)
fmt.Print("ぱ")
time.Sleep(time.Millisecond)
fmt.Print("つ")
time.Sleep(time.Millisecond)
}
fmt.Println(" }")
// gen by https://webtools-oasis.com/ascii-art-generator
apt := []string{
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣀⣀⣀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣀⣀⣀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣶⣦⡄⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣀⠂⠂⣰⣿⠟⠛⢻⣿⡄⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣴⣦⡄⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣀⣀⠂⠂⣴⡿⠟⠛⢿⣷⡀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡷⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣿⠂⢻⣿⣄⣀⣸⣿⡇⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⠇⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡶⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢹⣿⡇⠂⢿⣧⣀⣀⣸⣿⠃⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣀⣀⣀⣀⣀⣀⣿⣿⣀⣤⣤⣤⣶⣶⣾⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣸⣿⠇⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡟⠂⠈⠛⠿⠿⠟⠋⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣀⣀⣀⣀⣀⣀⣀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣀⣀⣀⣀⣀⣀⣿⣿⣠⣤⣤⣤⣶⣶⣾⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣼⣿⠇⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡇⠂⠈⠛⠿⠿⠟⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣀⣀⣀⣀⣀⣀⣀⠂⠂⠂⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠻⠿⠿⠿⠿⢿⣿⣿⠛⠛⠛⠉⠉⢉⠉⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣇⣀⣀⣀⣀⣤⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣀⣀⣠⣤⣶⣶⣿⣿⠿⠿⠟⠛⠻⠿⢿⣿⣶⣄⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠈⠿⠿⠿⠿⠿⠿⣿⡿⠛⠛⠛⠉⠉⠉⠉⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣇⣀⣀⣀⣠⣤⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣀⣀⣠⣤⣶⣾⣿⣿⠿⠿⠟⠛⠻⠿⢿⣿⣦⣀⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡏⠂⠂⠂⠂⠂⣿⣿⡆⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡇⠂⠂⠂⠂⠂⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠟⠛⠂⠂⠂⠂⠂⢤⣴⣶⣾⣿⣿⡿⠿⠛⠋⠉⠂⠂⠂⠂⠂⠂⠂⠂⠂⠈⠻⣿⣷⡀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡇⠂⠂⠂⠂⠂⣸⣷⡆⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡇⠂⠂⠂⠂⠂⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠿⠟⠛⠂⠂⠂⠂⠂⣤⣴⣶⣿⣿⣿⡿⠿⠛⠋⠉⠂⠂⠂⠂⠂⠂⠂⠂⠂⠈⠻⣿⣧⡀⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣇⣠⣤⣤⣤⣤⣿⣿⣥⣤⣄⡀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣸⣿⠃⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣧⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠈⠻⠛⠉⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠘⣿⣷⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣇⣠⣤⣤⣤⣤⣿⣿⣤⣤⣄⡀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣸⣿⠃⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡇⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠈⠻⠛⠉⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢹⣿⣧⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣠⣴⣾⣿⡿⠟⠛⠛⢩⣿⡿⠉⠙⠛⠿⣿⣧⡀⠂⠂⠂⠂⠂⠂⠂⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⡄⠂⠂⠂⠂⠂⠂⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣠⣴⣾⣿⡿⠟⠛⠋⣩⣿⡟⠉⠙⠛⠿⣿⣶⡄⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡇⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣿⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣴⣿⡿⠋⢸⣿⡇⠂⠂⣰⣿⡟⠂⠂⠂⠂⠂⠈⢻⣿⡄⠂⠂⠂⠂⠂⠂⠘⠛⠋⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠁⠂⠂⠂⠂⠂⠂⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢠⣿⡿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣴⣿⡿⠋⢸⣿⡇⠂⠂⣴⣿⡟⠂⠂⠂⠂⠂⠈⢿⣿⡄⠂⠂⠂⠂⠂⠂⠂⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡇⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣸⣿⡿⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⣰⣿⡿⠋⠂⠂⢸⣿⣇⢀⣼⣿⠏⠂⠂⠂⠂⠂⠂⠂⠈⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⠂⢠⣤⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⣿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣰⣿⡿⠃⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣴⣿⠟⠋⠂⠂⠘⣿⡇⢀⣾⣿⠏⠂⠂⠂⠂⠂⠂⠂⢸⣿⣇⠂⠂⠂⠂⠂⠂⠂⣿⣿⠂⣰⣄⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡇⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣰⣿⡿⠃⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⣰⣿⠏⠂⠂⠂⠂⠂⣿⣿⣾⡿⠃⠂⠂⠂⠂⠂⠂⠂⠂⢀⣿⡿⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⢠⣿⡿⠁⠂⠂⢀⣤⣶⣶⣶⣶⣶⣾⣿⣿⣄⡀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣠⣴⣾⣿⠟⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣼⣿⡏⠂⠂⠂⠂⠂⣿⣷⣿⠟⠁⠂⠂⠂⠂⠂⠂⠂⠂⢸⣿⡏⠂⠂⠂⠂⠂⠂⠂⣿⣿⣰⣿⡏⠂⠂⠂⣠⣴⣶⣶⣶⣶⣶⣾⣿⣧⣄⡀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣠⣴⣾⣿⠟⠁⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⠂⠂⠂⠂⣠⣴⣿⣿⡏⠂⠂⠂⠂⠂⠂⠂⠂⠂⢠⣾⣿⠃⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⣾⡿⠁⠂⠂⢰⣿⡟⠉⠁⠂⠂⠉⢹⣿⣿⠿⣿⣷⣦⡀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣀⣠⣤⣴⣾⣿⡿⠟⠋⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⣿⣿⠂⠂⠂⠂⣠⣴⣿⣿⡇⠂⠂⠂⠂⠂⠂⠂⠂⠂⢠⣿⣿⠃⠂⠂⠂⠂⠂⠂⠂⣿⣿⣿⡿⠂⠂⠂⢰⣿⡟⠉⠂⠂⠈⠉⢹⣿⡟⠿⣿⣷⣤⡀⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢀⣀⣠⣤⣶⣾⣿⠿⠟⠋⠂⠂⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⢿⣿⣶⣶⣶⣿⠿⠋⠈⠿⠟⠂⠂⠂⠂⠂⠂⣀⣤⣾⣿⡟⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢹⣿⣿⠃⠂⠂⠂⠘⣿⣷⣤⣤⣀⣤⣤⣾⣿⠏⠂⠂⠙⢿⣿⡆⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠘⢿⣿⠿⠿⠛⠛⠉⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⢿⣿⣶⣶⣶⣿⠿⠋⠘⠿⠟⠂⠂⠂⠂⠂⠂⣀⣴⣶⣿⠟⠁⠂⠂⠂⠂⠂⠂⠂⠂⢹⣿⣿⠃⠂⠂⠂⠘⣿⣷⣤⣤⣀⣤⣴⣿⡿⠁⠂⠈⠙⢿⣿⠆⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠘⢿⡿⠿⠿⠛⠋⠉⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠉⠙⠋⠉⠂⠂⠂⠂⠂⠂⠂⠂⣤⣶⣾⣿⠿⠟⠋⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠈⠿⠿⠂⠂⠂⠂⠂⠈⠙⠛⠛⠛⠛⠛⠋⠁⠂⠂⠂⠂⠂⠈⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠉⠙⠋⠉⠂⠂⠂⠂⠂⠂⠂⠠⣤⣶⣾⣿⠿⠟⠋⠁⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠈⠿⠿⠂⠂⠂⠂⠂⠈⠙⠛⠛⠛⠛⠛⠋⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠈⠉⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠈⠉⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂`,
`⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂`,
}
var offset int
var termWidth int
var termHeight int
for {
// Move cursor to top left
fmt.Print("\033[H")
w, h, err := term.GetSize(int(os.Stdout.Fd()))
if err != nil {
fmt.Println("Failed to get terminal size:", err)
return
}
// Erase screen if terminal size changed
if termWidth != w || termHeight != h {
fmt.Print("\033[2J")
termWidth = w
termHeight = h
}
for _, line := range apt {
runes := []rune(line)
beginIndex := offset % len(runes)
endIndex := (offset + termWidth) % len(runes)
if beginIndex < endIndex {
fmt.Println(string(runes[beginIndex:endIndex]))
} else {
// Fold back if the string to be displayed exceeds the end of the line
fmt.Println(string(append(runes[beginIndex:], runes[:endIndex]...)))
}
}
for _, line := range apt {
runes := []rune(line)
len := len(runes)
inverseOffset := len - offset%len
beginIndex := inverseOffset % len
endIndex := (inverseOffset + termWidth) % len
if beginIndex < endIndex {
fmt.Println(string(runes[beginIndex:endIndex]))
} else {
// Fold back if the string to be displayed exceeds the end of the line
fmt.Println(string(append(runes[beginIndex:], runes[:endIndex]...)))
}
}
offset++
time.Sleep(20 * time.Millisecond)
}
}