mirror of
https://github.com/minio/minio.git
synced 2024-12-26 15:15:55 -05:00
.. | ||
doc.go | ||
LICENCE | ||
README.md | ||
ts_darwin.go | ||
ts_linux.go | ||
ts_other.go | ||
ts_unix.go | ||
ts_windows.go | ||
ts_x.go | ||
ts.go |
ts (Terminal Size)
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
}