Categorygithub.com/ghokun/termdim
modulepackage
1.0.1
Repository: https://github.com/ghokun/termdim.git
Documentation: pkg.go.dev

# 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

# Functions

GetSize returns terminal size.