Documentation
¶
Overview ¶
Package term says whether a file is a terminal a person reads, and whether it shows colours, for the console lines a logger writes beside the store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Colors ¶
Colors says whether f shows ANSI colours: a terminal, without NO_COLOR (no-color.org) or a TERM of dumb. On Windows it asks the console to read escape sequences, which a console from before Windows Terminal prints as text unless asked.
func IsTerminal ¶
IsTerminal says whether f is a character device, a console or a terminal, rather than a pipe or a file. The null device is one too, and nobody reads what goes there.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.