go rewrite

This commit is contained in:
2021-04-09 01:55:10 +02:00
parent 805bed7db1
commit 03cbbfd91c
41 changed files with 1149 additions and 2732 deletions

20
internal/terminal/main.go Normal file
View File

@@ -0,0 +1,20 @@
package terminal
import (
tm "github.com/buger/goterm"
)
func Clear() {
tm.Clear()
}
func Append(line string) {
tm.Println(line)
tm.Flush()
}
func Replace(line string) {
tm.MoveCursorUp(1)
tm.Print("\033[K")
Append(line)
}