Documentation
¶
Overview ¶
Package window provides methods for working terminal window
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHeight ¶
func GetHeight() int
GetHeight returns window height
Example ¶
height := GetHeight() if height == -1 { fmt.Println("Can't detect window size") return } fmt.Printf("Window height: %d\n", height)
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.