Documentation
¶
Overview ¶
Package terminal contains helper for the terminal, such as coloring output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
IsTerminal return true if the file descriptor is terminal and the TERM environment variable isn't a dumb one.
func PrintANSIColors ¶
PrintANSIColors returns false if NO_COLOR env variable is set, else IsTerminal(f).
func ReportProgress ¶
func ReportProgress(w io.Writer, state ProgressState, progress float64)
ReportProgress writes OSC 9;4 sequence to w.
Types ¶
type ProgressState ¶
type ProgressState int
const ( ProgressHidden ProgressState = iota ProgressNormal ProgressError ProgressIntermediate ProgressWarning )
Click to show internal directories.
Click to hide internal directories.