ts
github.com/olekukonko/ts
go get github.com/olekukonko/ts
ts

github.com/olekukonko/ts

Simple go Application to get Terminal Size

by Oleku Konko

v0.0.0-20171002115256-78ecb04241c0 (see all)License:MIT
go get github.com/olekukonko/ts
Readme

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

GitHub Stars

48

LAST COMMIT

5yrs ago

MAINTAINERS

0

CONTRIBUTORS

4

OPEN ISSUES

2

OPEN PRs

2
VersionTagPublished
v0.0.0-20171002115256-78ecb04241c0
4yrs ago
v0.0.0-20140412220145-ecf753e7c962
4yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate