Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ColorBlack = AnsiColor{30} ColorRed = AnsiColor{31} ColorGreen = AnsiColor{32} ColorYellow = AnsiColor{33} ColorBlue = AnsiColor{34} ColorMagenta = AnsiColor{35} ColorCyan = AnsiColor{36} ColorWhite = AnsiColor{37} )
Terminal AnsiColors
View Source
var TrueColorForAnsiColor = map[AnsiColor]TrueColor{ ColorBlack: {0, 0, 0}, ColorRed: {255, 65, 54}, ColorGreen: {149, 189, 64}, ColorYellow: {255, 220, 0}, ColorBlue: {0, 116, 217}, ColorMagenta: {177, 13, 201}, ColorCyan: {105, 206, 245}, ColorWhite: {255, 255, 255}, }
TrueColorForAnsiColor is TrueColor lookalikes for displaying AnsiColor f.e. with the HTML parser Colors based on http://clrs.cc/
Functions ¶
This section is empty.
Types ¶
type AnsiColor ¶
type AnsiColor struct {
// contains filtered or unexported fields
}
AnsiColor representation
type Color ¶
type Color interface { // GetPrefix returns prefix for ansi color GetPrefix() string // GetSuffix returns suffix for ansi color GetSuffix() string }
Color has a pre- and a suffix
type TrueColor ¶
type TrueColor struct {
// contains filtered or unexported fields
}
TrueColor with rgb Attributes
func NewTrueColorFromHexString ¶
NewTrueColorFromHexString returns a TrueColor object based on a hexadecimal string
Click to show internal directories.
Click to hide internal directories.