Registry /
utility / kopoli-go-terminal-size
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.