Rainbond/vendor/github.com/apcera/termtables/term/wrapper.go
2017-11-10 12:07:43 +08:00

23 lines
336 B
Go

// Copyright 2013 Apcera Inc. All rights reserved.
// +build ignore
package main
import (
"fmt"
"os"
"github.com/apcera/termtables/term"
)
func main() {
size, err := term.GetSize()
if err != nil {
fmt.Fprintf(os.Stderr, "failed: %s\n", err)
os.Exit(1)
}
fmt.Printf("Lines %d Columns %d\n", size.Lines, size.Columns)
}