Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoColor = !terminal.IsTerminal(int(os.Stdout.Fd()))
NoColor defines if the output is colorized or not. It is set based on the stdout's file descriptor by default.
Functions ¶
Types ¶
type Attribute ¶
type Attribute int
Attribute defines a single SGR Code
const ( Reset Attribute = iota Bold Faint Italic Underline BlinkSlow BlinkRapid ReverseVideo Concealed CrossedOut )
Base attributes
Foreground text colors
const ( FgHiBlack Attribute = iota + 90 FgHiRed FgHiGreen FgHiYellow FgHiBlue FgHiMagenta FgHiCyan FgHiWhite )
Foreground Hi-Intensity text colors
Background text colors
Click to show internal directories.
Click to hide internal directories.