TestNcurses in client & fix dimensions
This commit is contained in:
parent
fb77010302
commit
a9e3afffa9
|
@ -4,6 +4,8 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"code.bitsetter.de/fun/gosl/data"
|
||||
)
|
||||
|
||||
var cmdClient = &cobra.Command{
|
||||
|
@ -15,6 +17,7 @@ var cmdClient = &cobra.Command{
|
|||
|
||||
func runClient(cmd *cobra.Command, args []string) {
|
||||
fmt.Println("running client ...")
|
||||
data.TestNC()
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -20,8 +20,8 @@ func TestNC() {
|
|||
os.Exit(1)
|
||||
}
|
||||
win.Clear()
|
||||
w, h := win.MaxYX()
|
||||
h, w := win.MaxYX()
|
||||
goncurses.End()
|
||||
fmt.Printf("screen: %d x %d", w, h)
|
||||
fmt.Printf("screen: %d x %d\n", w, h)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user