Documentation
¶
Overview ¶
Package terminal styles command output for terminals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorEnabled ¶
ColorEnabled reports whether f is a terminal and NO_COLOR is unset, following the https://no-color.org convention.
Types ¶
type Palette ¶
type Palette struct {
// contains filtered or unexported fields
}
Palette styles text with ANSI colors, or leaves it plain when disabled.
func NewPalette ¶
NewPalette returns a palette that styles text only when enabled.
Click to show internal directories.
Click to hide internal directories.