Registry / utility / nathan-fiscaletti-consolesize-go

nathan-fiscaletti-consolesize-go

JSON →
library0.0.0-20220204101620-317176b6684dgogounverified

A Go library for retrieving the size of the console or terminal window.

go get github.com/nathan-fiscaletti/consolesize-go
INSTALL
IMPORT
SIG · NATHAN-FISCALETTI-
N
nathan-fiscaletti-consolesize-go
utilitygov0.0.0-20220204101620-317176b6684d
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.

consolesize
github.com/nathan-fiscaletti/consolesize-go

Get the console width and height.

package main import ( "fmt" "github.com/nathan-fiscaletti/consolesize-go" ) func main() { cols, rows := consolesize.GetConsoleSize() fmt.Printf("Columns: %d, Rows: %d\n", cols, rows) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220204101620-317176b6684dlatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
nathan-fiscaletti-consolesize-go — go get nathan-fiscaletti-consolesize-go · libregistry