Documentation
¶
Overview ¶
Package ansicolor ...
Index ¶
- Variables
- func Color16Colors(str string, foreground int, background int) string
- func Color256Colors(str string, foreground int, background int) string
- func Color8Colors(str string, foreground int, background int) string
- func ColorTrueColors(str string, fr int, fg int, fb int, br int, bg int, bb int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Colorifier ...
Colorifier = &colorifier{
Escape: "\x1b",
ResetAll: 0,
ResetColors: "39;49",
}
)
Functions ¶
func Color16Colors ¶
Color16Colors or Select Graphic Rendition) ...
Also check: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
func Color256Colors ¶
Color256Colors or Select Graphic Rendition) ...
ESC[ … 38;5;<n> … m Select foreground color ESC[ … 48;5;<n> … m Select background color
0- 7: standard colors (as in ESC [ 30–37 m) 8- 15: high intensity colors (as in ESC [ 90–97 m) 16-231: 6 × 6 × 6 cube (216 colors): 16 + 36 × r + 6 × g + b (0 ≤ r, g, b ≤ 5)
232-255: grayscale from black to white in 24 steps
Also check: https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
func Color8Colors ¶
Color8Colors or Select Graphic Rendition) ...
Also check: https://en.wikipedia.org/wiki/ANSI_escape_code#Colorss
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.