mirror of
https://github.com/maaslalani/confetty.git
synced 2024-11-15 04:06:43 +00:00
17 lines
237 B
Go
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)
|
||
|
}
|