termutil

package
v0.0.0-...-0724540 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTerminalWidth

func GetTerminalWidth() int

GetTerminalWidth returns the current terminal width in columns. It tries multiple sources in order: 1. /dev/tty (works even when stdout is redirected/piped) 2. COLUMNS environment variable 3. stdout file descriptor 4. Default fallback of 80 columns

func IsTerminal

func IsTerminal() bool

IsTerminal returns true if stdout is a terminal (not redirected/piped)

Types

This section is empty.

Jump to

Keyboard shortcuts

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