summaryrefslogtreecommitdiff
path: root/help.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-03 11:59:45 -0600
committerJeff Carr <[email protected]>2025-03-03 11:59:45 -0600
commit76e15fa1df21d1d37a294983184a6a1df6812e07 (patch)
tree4bb20c359fb2523191e7b15a426f59b039d965fb /help.go
parent75014f4b284d3e88266c1ae319ee9bbdb86d3ad2 (diff)
start looking into proper mutex locking
Diffstat (limited to 'help.go')
-rw-r--r--help.go38
1 files changed, 13 insertions, 25 deletions
diff --git a/help.go b/help.go
index 5f5274b..36731b2 100644
--- a/help.go
+++ b/help.go
@@ -72,10 +72,6 @@ func showHelp() error {
}
help.SelBgColor = gocui.ColorGreen
help.SelFgColor = gocui.ColorBlack
- // fmt.Fprintln(help, "Enter: Click Button")
- // fmt.Fprintln(help, "Tab/Space: Switch Buttons")
- // fmt.Fprintln(help, "Backspace: Delete Button")
- // fmt.Fprintln(help, "Arrow keys: Move Button")
fmt.Fprintln(help, strings.Join(helpText, "\n"))
@@ -85,27 +81,19 @@ func showHelp() error {
}
g.SetViewOnTop("help")
me.helpLabel = help
- if me.treeRoot == nil {
- log.Info("gogui makeClock() error. treeRoot == nil")
- return nil
- } else {
- if me.notify.clock.tk == nil {
- makeClock(me.notify.clock.wId)
- me.notify.clock.tk.MoveToOffset(maxX-me.notify.clock.offsetW, 1)
- me.notify.clock.tk.Hide()
- me.notify.clock.tk.Show()
- }
- if me.notify.clock.tk != nil {
- me.notify.clock.tk.MoveToOffset(maxX-me.notify.clock.offsetW, 1)
- me.notify.clock.tk.Hide()
- me.notify.clock.tk.Show()
- }
- if me.stdout.tk == nil {
- makeOutputWidget(me.baseGui, "made this in showHelp()")
- msg := fmt.Sprintf("test to stdout from in showHelp() %d\n", me.ecount)
- me.stdout.Write([]byte(msg))
- log.Log(NOW, "log.log(NOW) test")
+
+ /*
+ if me.treeRoot == nil {
+ log.Info("gogui makeClock() error. treeRoot == nil")
+ return nil
+ } else {
+ if me.stdout.tk == nil {
+ makeOutputWidget(me.baseGui, "made this in showHelp()")
+ msg := fmt.Sprintf("test to stdout from in showHelp() %d\n", me.ecount)
+ me.stdout.Write([]byte(msg))
+ log.Log(NOW, "log.log(NOW) test")
+ }
}
- }
+ */
return nil
}