Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWidth ¶
func GetWidth() int
GetWidth returns the width of the terminal in characters. If the width cannot be determined, it returns a default value of 120.
func GetWidthFrom ¶
GetWidthFrom returns the width of the terminal from a given output stream. If the width cannot be determined from the provided stream, it falls back to os.Stdout. If that also fails, it returns a default value of 120.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.