Documentation ¶
Index ¶
Constants ¶
View Source
const Escape = "\x1b"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parameter ¶
type Parameter uint8
Parameter defines an SGR parameter. See: https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters
const ( Reset Parameter = iota Bold Faint Italic Underline BlinkSlow BlinkRapid ReverseVideo Conceal CrossedOut PrimaryFont )
Base params.
Foreground.
const ( FgBBlack Parameter = iota + 90 FgBRed FgBGreen FgBYellow FgBBlue FgBMagenta FgBCyan FgBWhite )
Foreground Bright.
Background.
const ( BgBBlack Parameter = iota + 100 BgBRed BgBGreen BgBYellow BgBBlue BgBMagenta BgBCyan BgBWhite )
Background Bright.
func NewParameter ¶
NewParameter returns a Parameter based on the given name. If the name doesn't match any value, the zero-value is returned.
Click to show internal directories.
Click to hide internal directories.