summaryrefslogtreecommitdiff
path: root/toolkit/gocui/help.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-02 19:02:51 -0600
committerJeff Carr <[email protected]>2023-12-02 19:02:51 -0600
commit7880d9df6de1040258bea966f040e12be6205af1 (patch)
treebb0f3d74eb4e3b5094bfe78e936679efb940cacf /toolkit/gocui/help.go
parent19e6ea76f3c09fe3a5d9a4d4caff7d14571f4ba5 (diff)
gocui plugin refactor to a *node binary tree
rename arg '--gui <toolkit>' add a cloudflare example fixes since go v1.21 didn't compile anymore due to argv order more place() changes recursive size computation gocui: Major refactor to use the *node binary tree gocui: refactor place() and size() gocui: better place() and spacing (tab, buttons, etc) gocui: better mouse click handling gocui: switch to using tk.gocuiSize & tk.size gocui: event handling cleanups gocui: add window labels work gocui: struct cleanups gocui: duplicate binary tree structs removed gocui: deprecate old children Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/help.go')
-rw-r--r--toolkit/gocui/help.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/toolkit/gocui/help.go b/toolkit/gocui/help.go
index 74143a2..66719bb 100644
--- a/toolkit/gocui/help.go
+++ b/toolkit/gocui/help.go
@@ -12,25 +12,23 @@ import (
"github.com/awesome-gocui/gocui"
)
-func addHelp() {
- me.baseGui.SetManagerFunc(helplayout)
-}
-
var helpText []string = []string{"KEYBINDINGS",
"",
"d: show/hide debugging",
- "h: hide widgets",
- "s: show all widgets",
+ "s/h: show/hide all widgets",
+ "L: list all widgets",
"q: quit()",
"p: panic()",
"o: show Stdout",
"l: log to /tmp/witgui.log",
- "Ctrl-D: Enable Debugging",
+ "Ctrl-D: Toggle Debugging",
+ "Ctrl-V: Toggle Verbose Debugging",
"Ctrl-C: Exit",
"",
}
-func helplayout(g *gocui.Gui) error {
+func helplayout() error {
+ g := me.baseGui
var err error
maxX, _ := g.Size()