项目作者: ghokun

项目描述 :
Retrieve terminal dimensions in Go
高级语言: Go
项目地址: git://github.com/ghokun/termdim.git
创建时间: 2021-04-19T08:59:30Z
项目社区:https://github.com/ghokun/termdim

开源协议:MIT License

下载


termdim

Retrieves terminal dimensions.

Usage

  1. import (
  2. "github.com/ghokun/termdim"
  3. )
  4. func MyFunc() {
  5. width, height, err := termdim.GetSize(int(os.Stdout.Fd()))
  6. }

Installation

  1. go get github.com/ghokun/termdim

LICENSE

MIT

Authors

ghokun