go-ncurses/examples/basic.go

24 lines
323 B
Go

package main
import (
"fmt"
"git.metznet.ca/MetzNet/go-ncurses"
)
func main() {
err := ncurses.Init()
if err != nil {
panic(err)
}
window := ncurses.InitScr.Load()()
x := ncurses.GetMaxX.Load()(window)
y := ncurses.GetMaxY.Load()(window)
fmt.Printf("%d x %d\n", x, y)
ncurses.EndWin.Load()()
}