Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTTY ¶
IsTTY reports whether w is connected to a character device (typically a terminal). With stdlib-only constraints this approximation cannot distinguish a real terminal from other character devices like /dev/null — that distinction would need a proper ioctl via golang.org/x/term. For our purpose (auto-plain output when piped to a non-terminal), the approximation is sufficient: pipes, files, and buffers — the only writers callers actually wire to non-interactive contexts — all return false correctly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.