Add platform-specific terminal init & restore

This commit is contained in:
Christian Muehlhaeuser
2020-01-25 07:15:29 +01:00
parent 47bfe2b5df
commit bc67e3896b
3 changed files with 44 additions and 14 deletions

12
tty_windows.go Normal file
View File

@@ -0,0 +1,12 @@
// +build windows
package tea
func initTerminal() error {
hideCursor()
return nil
}
func restoreTerminal() {
showCursor()
}