confetty/confetti/confetti_unix.go

17 lines
237 B
Go
Raw Normal View History

2021-11-02 16:05:42 +00:00
//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)
}