git-lfs/vendor/github.com/olekukonko/ts
Taylor Blau d32ff9b429 go.mod: use latest github.com/olekukonko/ts
We use package github.com/olekukonko/ts to issue IOCTL's to gather the
terminal size of the calling terminal in order to determine the length
of lines we attempt to print.

Until now, we have used revision ecf753e7c962, which is over 4 years
old. Since then, github.com/olekukonko/ts has introduced support for
Solaris, which we previously could not build or run on because package
syscall on Solaris does not export an IOCTL constant.

Let's upgrade to the latest version, and bring in support for Solaris.
2018-09-03 09:27:17 -04:00
..
.travis.yml vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
doc.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
LICENCE vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
README.md vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
ts_darwin.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
ts_linux.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
ts_other.go go.mod: use latest github.com/olekukonko/ts 2018-09-03 09:27:17 -04:00
ts_solaris.go go.mod: use latest github.com/olekukonko/ts 2018-09-03 09:27:17 -04:00
ts_unix.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
ts_windows.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
ts_x.go go.mod: use latest github.com/olekukonko/ts 2018-09-03 09:27:17 -04:00
ts.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -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