package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Apr 19, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
termdim
Retrieves terminal dimensions.
Usage
import (
"github.com/ghokun/termdim"
)
func MyFunc() {
width, height, err := termdim.GetSize(int(os.Stdout.Fd()))
}
Installation
go get github.com/ghokun/termdim
LICENSE
MIT
Authors
ghokun
Documentation
¶
GetSize returns terminal size
Source Files
¶
Click to show internal directories.
Click to hide internal directories.