terminal

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 2 Imported by: 0

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

func GetWidthFrom(out any) int

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL