mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Add platform-specific terminal init & restore
This commit is contained in:
12
tty_windows.go
Normal file
12
tty_windows.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// +build windows
|
||||
|
||||
package tea
|
||||
|
||||
func initTerminal() error {
|
||||
hideCursor()
|
||||
return nil
|
||||
}
|
||||
|
||||
func restoreTerminal() {
|
||||
showCursor()
|
||||
}
|
||||
Reference in New Issue
Block a user