Move ansi helpers to termenv

This commit is contained in:
Christian Muehlhaeuser
2020-01-31 13:47:36 +01:00
parent bb06373836
commit f382f4db4a
9 changed files with 34 additions and 71 deletions

View File

@@ -2,11 +2,13 @@
package tea
import "github.com/muesli/termenv"
func initTerminal() error {
hideCursor()
termenv.HideCursor()
return nil
}
func restoreTerminal() {
showCursor()
termenv.ShowCursor()
}