Registry / utility / moby-term

moby-term

JSON →
library0.5.2gogounverified

Package term provides structures and helper functions to work with terminal state and sizes.

go get github.com/moby/term
INSTALL
IMPORT
SIG · MOBY-TERM
M
moby-term
utilitygov0.5.2
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
github.com/moby/term

Gets the terminal window size using moby/term.

package main import ( "fmt" "github.com/moby/term" ) func main() { ws, err := term.GetWinsize(0) if err != nil { fmt.Println("Error:", err) return } fmt.Printf("Width: %d, Height: %d\n", ws.Width, ws.Height) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

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