minio/vendor/github.com/olekukonko/ts
Harshavardhana 762b798767 Migrate this project to minio micro services code 2015-10-16 11:26:08 -07:00
..
LICENCE A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00
README.md A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00
doc.go A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00
ts.go A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00
ts_darwin.go A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00
ts_linux.go A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00
ts_other.go A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00
ts_unix.go A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00
ts_windows.go A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00
ts_x.go A better way to print prettified json syntax error msg 2015-10-03 12:25:44 -07:00

README.md

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