diff options
| author | Jeff Carr <[email protected]> | 2023-04-03 11:52:54 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-03 11:52:54 -0500 |
| commit | 55c7b44594096f338676d1b133acd4c649d1d6b8 (patch) | |
| tree | d3872f5230ee1ddde24aa61efa48b6703f81b644 /toolkit/gocui/keybindings.go | |
| parent | 4b6207743b90968d6b822032a4355e43b6ce6da9 (diff) | |
gocui: more color cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/keybindings.go')
| -rw-r--r-- | toolkit/gocui/keybindings.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/toolkit/gocui/keybindings.go b/toolkit/gocui/keybindings.go index 18d3097..c449906 100644 --- a/toolkit/gocui/keybindings.go +++ b/toolkit/gocui/keybindings.go @@ -38,6 +38,8 @@ func defaultKeybindings(g *gocui.Gui) error { return nil } +var showDebug bool = true + // dump out the widgets func addDebugKeys(g *gocui.Gui) { // dump all widget info to the log @@ -45,6 +47,13 @@ func addDebugKeys(g *gocui.Gui) { func(g *gocui.Gui, v *gocui.View) error { log(logNow, "gocui.SetKeyBinding() dumpTree() START") me.rootNode.dumpTree(true) + if (showDebug) { + me.rootNode.showFake() + showDebug = false + } else { + me.rootNode.hideFake() + showDebug = true + } return nil }) |
