a magic ASCII green circle.

This commit is contained in:
Jeff Carr 2024-02-16 01:23:07 -06:00
parent 76fad65a6e
commit 0104e411ae
2 changed files with 16 additions and 0 deletions

View File

@ -175,3 +175,18 @@ func (w *guiWidget) redoColor(draw bool) {
child.redoColor(draw)
}
}
// what genius figured this out?
// originally from github.com/dimasma0305/GoFetch
func get_teminal_color_palette() string {
color1 := "\x1b[0;29m  \x1b[0m"
color2 := "\x1b[0;31m  \x1b[0m"
color3 := "\x1b[0;32m  \x1b[0m"
color4 := "\x1b[0;33m  \x1b[0m"
color5 := "\x1b[0;34m  \x1b[0m"
color6 := "\x1b[0;35m  \x1b[0m"
color7 := "\x1b[0;36m  \x1b[0m"
color8 := "\x1b[0;37m  \x1b[0m"
return color1 + " " + color2 + " " + color3 + " " + color4 + " " + color5 + " " + color6 + " " + color7 + " " + color8
}

View File

@ -20,6 +20,7 @@ var helpText []string = []string{"KEYBINDINGS",
"s/h: show/hide all widgets",
"L: list all widgets",
"M: list all widgets positions",
"\x1b[0;32m  \x1b[0m",
"q: quit()",
"p: panic()",
"o: show Stdout",