Registry / utility / x-term

x-term

JSON →
library0.44.0gogounverified

Package term provides support functions for dealing with terminals, as commonly found on UNIX systems.

go get golang.org/x/term
INSTALL
IMPORT
SIG · X-TERM
X
x-term
utilitygov0.44.0
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.

term
✓ golang.org/x/term

Get terminal size using term.GetSize

package main import ( "fmt" "golang.org/x/term" ) func main() { w, h, err := term.GetSize(0) if err != nil { panic(err) } fmt.Printf("Width: %d, Height: %d\n", w, h) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.44.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
x-term — go get x-term · libregistry