bug fix and Run all components

This commit is contained in:
2024-09-23 16:42:40 +02:00
parent f216e04b15
commit 7546933e81
2 changed files with 14 additions and 8 deletions
+6
View File
@@ -76,6 +76,12 @@ func (r *Render) Render() error {
return nil
}
func (r *Render) Run() {
for _, c := range r.components {
c.Run()
}
}
func Clear() {
fmt.Print("\x1b[H\x1b[2J\x1b[3J")
}