term

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 5 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, or defaultWidth if it cannot be determined.

func IsTTY

func IsTTY(w io.Writer) bool

IsTTY returns true if the given writer is a terminal.

func RenderLink(url, text string) string

RenderLink creates a clickable terminal link (OSC 8 escape sequence). Not all terminals support this feature.

Types

This section is empty.

Jump to

Keyboard shortcuts

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