Documentation
¶
Overview ¶
Package termui decides whether human-readable output may use terminal styling (ANSI color, live progress). It is presentation only: callers never style machine-readable output, and the decision is local to one process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Color ¶
Color reports whether output to w may carry ANSI styling. An explicit always or never wins; in auto mode NO_COLOR disables color, FORCE_COLOR or CLICOLOR_FORCE enables it, TERM=dumb disables it, and otherwise only a terminal that accepts escape sequences gets color.
func IsTerminal ¶
IsTerminal reports whether w is an interactive terminal. Pipes, files, buffers and /dev/null are not.
Types ¶
Click to show internal directories.
Click to hide internal directories.