confetty/confetti/confetti_unix.go
Yasuhiro Matsumoto 02c40b05f9 Support Windows
2021-11-02 17:54:59 -04:00

17 lines
237 B
Go

//go:build !windows
// +build !windows
package confetti
import (
"golang.org/x/term"
)
func InitialModel() model {
width, height, err := term.GetSize(0)
if err != nil {
panic(err)
}
return InitialModelWithSize(width, height)
}