项目作者: ghokun
项目描述 :
Retrieve terminal dimensions in Go
高级语言: Go
项目地址: git://github.com/ghokun/termdim.git
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