You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Anis ELLEUCH b5ea05d839 A better way to print prettified json syntax error msg 9 years ago
..
LICENCE A better way to print prettified json syntax error msg 9 years ago
README.md A better way to print prettified json syntax error msg 9 years ago
doc.go A better way to print prettified json syntax error msg 9 years ago
ts.go A better way to print prettified json syntax error msg 9 years ago
ts_darwin.go A better way to print prettified json syntax error msg 9 years ago
ts_linux.go A better way to print prettified json syntax error msg 9 years ago
ts_other.go A better way to print prettified json syntax error msg 9 years ago
ts_test.go A better way to print prettified json syntax error msg 9 years ago
ts_unix.go A better way to print prettified json syntax error msg 9 years ago
ts_windows.go A better way to print prettified json syntax error msg 9 years ago
ts_x.go A better way to print prettified json syntax error msg 9 years ago

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