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