confetty/fireworks/fireworks_unix.go
2021-11-02 21:16:56 -04:00

17 lines
238 B
Go

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