git-lfs/vendor/_nuts/github.com/olekukonko/ts
2015-05-28 14:21:27 -06:00
..
.travis.yml setup nut 2015-05-25 11:49:36 -06:00
doc.go no need to rewrite imports in comments 2015-05-28 14:21:27 -06:00
LICENCE setup nut 2015-05-25 11:49:36 -06:00
README.md setup nut 2015-05-25 11:49:36 -06:00
ts_darwin.go setup nut 2015-05-25 11:49:36 -06:00
ts_linux.go setup nut 2015-05-25 11:49:36 -06:00
ts_other.go setup nut 2015-05-25 11:49:36 -06:00
ts_test.go setup nut 2015-05-25 11:49:36 -06:00
ts_unix.go setup nut 2015-05-25 11:49:36 -06:00
ts_windows.go setup nut 2015-05-25 11:49:36 -06:00
ts_x.go setup nut 2015-05-25 11:49:36 -06:00
ts.go setup nut 2015-05-25 11:49:36 -06:00

ts (Terminal Size)

Build Status Total views

Simple go Application to get Terminal Size. So Many Implementations do not support windows but ts has full windows support. Run go get github.com/olekukonko/ts to download and install

Example

package main

import (
	"fmt"
	"github.com/olekukonko/ts"
)

func main() {
	size, _ := ts.GetSize()
	fmt.Println(size.Col())  // Get Width
	fmt.Println(size.Row())  // Get Height
	fmt.Println(size.PosX()) // Get X position
	fmt.Println(size.PosY()) // Get Y position
}

See Documentation