TestNcurses in client & fix dimensions

This commit is contained in:
Lennart Buhl 2016-01-22 20:17:03 +01:00
parent fb77010302
commit a9e3afffa9
3 changed files with 5 additions and 2 deletions

View File

@ -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() {

View File

@ -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)
}

BIN
gosl

Binary file not shown.