Documentation ¶
Overview ¶
Package term implements colored output and size measurements for terminals.
Index ¶
- Constants
- func Blue(text string) string
- func BlueBold(text string) string
- func Color(text string, colors ...string) string
- func Cyan(text string) string
- func CyanBold(text string) string
- func Green(text string) string
- func GreenBold(text string) string
- func Magenta(text string) string
- func MagentaBold(text string) string
- func Red(text string) string
- func RedBold(text string) string
- func Size() (col, row int, err error)
- func White(text string) string
- func WhiteBold(text string) string
- func Yellow(text string) string
- func YellowBold(text string) string
Constants ¶
View Source
const ( Default = "0" Bold = "1" Dim = "2" Underline = "4" Inverse = "7" Hidden = "8" Strikeout = "9" )
Style codes.
View Source
const ( FgBlack = "30" FgRed = "31" FgGreen = "32" FgYellow = "33" FgBlue = "34" FgMagenta = "35" FgCyan = "36" FgWhite = "37" )
Foreground color codes.
View Source
const ( BgBlack = "40" BgRed = "41" BgGreen = "42" BgYellow = "43" BgBlue = "44" BgMagenta = "45" BgCyan = "46" BgWhite = "47" )
Background color codes.
Variables ¶
This section is empty.
Functions ¶
func MagentaBold ¶
MagentaBold returns a bold magenta text on a black background.
func YellowBold ¶
YellowBold returns a bold yellow text on a black background.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.