Documentation
¶
Overview ¶
Package terminal centralizes interactive terminal detection for CLI output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControlOutputAllowed ¶
func ControlOutputAllowed() bool
ControlOutputAllowed reports whether the environment allows terminal control output.
func IsInteractive ¶
IsInteractive reports whether terminal control output is appropriate.
func IsTerminal ¶
IsTerminal reports whether file is an actual terminal.
func WithIsTerminalForTest ¶
WithIsTerminalForTest overrides terminal detection and returns a restore function. It is intended for tests that need deterministic TTY policy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.