Registry / utility / kopoli-go-terminal-size

kopoli-go-terminal-size

JSON →
library0.0.0-20170219200355-5c97524c8b54gogounverified

Gets the terminal size, supporting both Linux and Windows.

go get github.com/kopoli/go-terminal-size
INSTALL
IMPORT
SIG · KOPOLI-GO-TERMINAL
K
kopoli-go-terminal-size
utilitygov0.0.0-20170219200355-5c97524c8b54
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.

tsize
github.com/kopoli/go-terminal-size

Retrieves the terminal width and height and prints them.

package main import ( "fmt" "github.com/kopoli/go-terminal-size" ) func main() { size, err := tsize.GetSize() if err != nil { panic(err) } fmt.Printf("Width: %d, Height: %d\n", size.Width, size.Height) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170219200355-5c97524c8b54latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
kopoli-go-terminal-size — go get kopoli-go-terminal-size · libregistry