Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 16-Feb-2017 | - | ||||
.travis.yml | H A D | 16-Feb-2017 | 41 | 6 | 5 | |
LICENCE | H A D | 16-Feb-2017 | 1 KiB | 19 | 16 | |
README.md | H A D | 16-Feb-2017 | 826 | 29 | 21 | |
doc.go | H A D | 16-Feb-2017 | 872 | 37 | 1 | |
ts.go | H A D | 16-Feb-2017 | 681 | 37 | 19 | |
ts_darwin.go | H A D | 16-Feb-2017 | 362 | 15 | 4 | |
ts_linux.go | H A D | 16-Feb-2017 | 356 | 14 | 4 | |
ts_other.go | H A D | 16-Feb-2017 | 396 | 15 | 4 | |
ts_test.go | H A D | 16-Feb-2017 | 724 | 33 | 21 | |
ts_unix.go | H A D | 16-Feb-2017 | 379 | 15 | 4 | |
ts_windows.go | H A D | 16-Feb-2017 | 1.8 KiB | 65 | 36 | |
ts_x.go | H A D | 16-Feb-2017 | 945 | 47 | 29 |
README.md
1ts (Terminal Size) 2== 3 4[![Build Status](https://travis-ci.org/olekukonko/ts.png?branch=master)](https://travis-ci.org/olekukonko/ts) [![Total views](https://sourcegraph.com/api/repos/github.com/olekukonko/ts/counters/views.png)](https://sourcegraph.com/github.com/olekukonko/ts) 5 6Simple go Application to get Terminal Size. So Many Implementations do not support windows but `ts` has full windows support. 7Run `go get github.com/olekukonko/ts` to download and install 8 9#### Example 10 11```go 12package main 13 14import ( 15 "fmt" 16 "github.com/olekukonko/ts" 17) 18 19func main() { 20 size, _ := ts.GetSize() 21 fmt.Println(size.Col()) // Get Width 22 fmt.Println(size.Row()) // Get Height 23 fmt.Println(size.PosX()) // Get X position 24 fmt.Println(size.PosY()) // Get Y position 25} 26``` 27 28[See Documentation](http://godoc.org/github.com/olekukonko/ts) 29