Skip to content

About

Terminal Dimensions is a simple Go package for finding your the width & height of your terminal

Topics

Resources

Stars

36 stars

Watchers

3 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

Go Go Reference Go Report Card

go get github.com/wayneashleyberry/terminal-dimensions
package main

import (
	"fmt"

	terminal "github.com/wayneashleyberry/terminal-dimensions"
)

func main() {
	x, y, err := terminal.Dimensions()
	if err != nil {
		panic(err)
	}

	fmt.Printf("Terminal is %d wide and %d high", x, y)
}

About

Terminal Dimensions is a simple Go package for finding your the width & height of your terminal

Topics

Resources

Stars

36 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages