summaryrefslogtreecommitdiff
path: root/colorNew.go
diff options
context:
space:
mode:
Diffstat (limited to 'colorNew.go')
-rw-r--r--colorNew.go36
1 files changed, 33 insertions, 3 deletions
diff --git a/colorNew.go b/colorNew.go
index 63dd15a..bb61984 100644
--- a/colorNew.go
+++ b/colorNew.go
@@ -3,15 +3,24 @@
package main
-// simple colors for light and dark
-
import (
"math/rand"
"github.com/awesome-gocui/gocui"
- log "go.wit.com/log"
+ "go.wit.com/log"
)
+// simple colors for light and dark
+
+// information about how terminfo works
+// https://jvns.ca/blog/2024/10/01/terminal-colours/
+
+// TODO: move all this to a protobuf
+// TODO: add black/white only flag for ttyS0
+// TODO: fix kvm/qemu serial console & SIGWINCH.
+// TODO: check minicom (doesn't work)
+// TODO: fix riscv boards
+
// DONE ON ENABLE() WIDGET
// restores the last saved color and makes it active
func (tk *guiWidget) restoreEnableColor() {
@@ -279,6 +288,8 @@ func (tk *guiWidget) setColorTextbox() {
tk.updateColor()
}
+// just notes down here
+
// what genius figured this out?
// originally from github.com/dimasma0305/GoFetch
func get_teminal_color_palette() string {
@@ -305,3 +316,22 @@ func randColor() gocui.Attribute {
log.Log(NOW, "randColor() i =", i)
return gocui.GetColor(colors[i])
}
+
+var none gocui.Attribute = gocui.AttrNone
+var colorNone colorT = colorT{none, none, none, none, none, "debug none"}
+
+var lightPurple gocui.Attribute = gocui.GetColor("#DDDDDD") // light purple
+var darkPurple gocui.Attribute = gocui.GetColor("#FFAA55") // Dark Purple
+var heavyPurple gocui.Attribute = gocui.GetColor("#88AA55") // heavy purple
+var powdererBlue gocui.Attribute = gocui.GetColor("#B0E0E6") // w3c 'powerder blue'
+var superLightGrey gocui.Attribute = gocui.GetColor("#55AAFF") // super light grey
+
+// Standard defined colors from gocui:
+// ColorBlack ColorRed ColorGreen ColorYellow ColorBlue ColorMagenta ColorCyan ColorWhite
+
+// v.BgColor = gocui.GetColor("#111111") // crazy red
+// v.BgColor = gocui.GetColor("#FF9911") // heavy red
+// v.SelBgColor = gocui.GetColor("#FFEE11") // blood red
+
+// v.BgColor = gocui.GetColor("#55AAFF") // super light grey
+// v.BgColor = gocui.GetColor("#FFC0CB") // 'w3c pink' yellow