termdim

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 2 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSize

func GetSize(fd int) (width, height int, err error)

GetSize returns terminal size

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL