a magic ASCII green circle.
This commit is contained in:
parent
76fad65a6e
commit
0104e411ae
15
color.go
15
color.go
|
@ -175,3 +175,18 @@ func (w *guiWidget) redoColor(draw bool) {
|
||||||
child.redoColor(draw)
|
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
|
||||||
|
}
|
||||||
|
|
1
help.go
1
help.go
|
@ -20,6 +20,7 @@ var helpText []string = []string{"KEYBINDINGS",
|
||||||
"s/h: show/hide all widgets",
|
"s/h: show/hide all widgets",
|
||||||
"L: list all widgets",
|
"L: list all widgets",
|
||||||
"M: list all widgets positions",
|
"M: list all widgets positions",
|
||||||
|
"\x1b[0;32m \x1b[0m",
|
||||||
"q: quit()",
|
"q: quit()",
|
||||||
"p: panic()",
|
"p: panic()",
|
||||||
"o: show Stdout",
|
"o: show Stdout",
|
||||||
|
|
Loading…
Reference in New Issue