Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleResizing ¶
func HandleResizing(resize <-chan TerminalSize, resizeFunc func(size TerminalSize))
HandleResizing spawns a goroutine that processes the resize channel, calling resizeFunc for each TerminalSize received from the channel. The resize channel must be closed elsewhere to stop the goroutine.
Types ¶
type TerminalSize ¶
TerminalSize represents the width and height of a terminal.
Click to show internal directories.
Click to hide internal directories.