Documentation ¶
Overview ¶
vendored from https://github.com/mgutz/ansi
Index ¶
Constants ¶
View Source
const ( // Reset is the ANSI reset escape sequence Reset = "\033[0m" // DefaultBG is the default background DefaultBG = "\033[49m" // DefaultFG is the default foreground DefaultFG = "\033[39m" )
Variables ¶
View Source
var Black string
Black FG
View Source
var Blue string
Blue FG
View Source
var ( // Colors maps common color names to their ANSI color code. Colors = map[string]int{ "black": black, "red": red, "green": green, "yellow": yellow, "blue": blue, "magenta": magenta, "cyan": cyan, "white": white, "default": defaultt, } )
View Source
var Cyan string
Cyan FG
View Source
var Green string
Green FG
View Source
var LightBlack string
LightBlack FG
View Source
var LightBlue string
LightBlue FG
View Source
var LightCyan string
LightCyan FG
View Source
var LightGreen string
LightGreen FG
View Source
var LightMagenta string
LightMagenta FG
View Source
var LightRed string
LightRed FG
View Source
var LightWhite string
LightWhite FG
View Source
var LightYellow string
LightYellow FG
View Source
var Magenta string
Magenta FG
View Source
var Red string
Red FG
View Source
var White string
White FG
View Source
var Yellow string
Yellow FG
Functions ¶
func DisableColors ¶
func DisableColors(disable bool)
DisableColors disables ANSI color codes. The default is false (colors are on).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.