Documentation
¶
Overview ¶
Package terminaldimensions provides simple helper functions to get the width and height of a users terminal.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dimensions ¶ added in v1.1.0
Dimensions returns the width and height of the terminal.
Example ¶
x, y, err := Dimensions()
if err != nil {
panic(err)
}
fmt.Printf("Terminal is %d wide and %d high", x, y)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.