Registry / utility / olekukonko-ts

olekukonko-ts

JSON →
library0.0.0-20171002115256-78ecb04241c0gogounverified

Package ts provides a terminal size API for Go, working on both Windows and Unix systems.

go get github.com/olekukonko/ts
INSTALL
IMPORT
SIG · OLEKUKONKO-TS
O
olekukonko-ts
utilitygov0.0.0-20171002115256-78ecb04241c0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ts
github.com/olekukonko/ts

Get the current terminal size

package main import ( "fmt" "github.com/olekukonko/ts" ) func main() { size, err := ts.GetSize() if err != nil { panic(err) } fmt.Printf("Terminal size: %dx%d\n", size.Col, size.Row) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20171002115256-78ecb04241c0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
olekukonko-ts — go get olekukonko-ts · libregistry