diff options
| author | Jeff Carr <[email protected]> | 2024-01-08 20:52:10 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-08 20:52:10 -0600 |
| commit | 3c2da3f096a5e8aeaa657deb2dc047cc23118c99 (patch) | |
| tree | 9be876900a02aebed4540f5453759ea1f1d5c7ce /gocui/keybindings.go | |
| parent | 2a9724d7a89733db8c41571a8b5d9d0e1f0d76b3 (diff) | |
use "go.wit.com/log"
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gocui/keybindings.go')
| -rw-r--r-- | gocui/keybindings.go | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/gocui/keybindings.go b/gocui/keybindings.go index 3e6f1a1..4599cf3 100644 --- a/gocui/keybindings.go +++ b/gocui/keybindings.go @@ -5,8 +5,9 @@ package main import ( - "os" "github.com/awesome-gocui/gocui" + + "go.wit.com/log" "go.wit.com/gui/widget" ) @@ -117,12 +118,13 @@ func addDebugKeys(g *gocui.Gui) { // log to output window g.SetKeybinding("", 'o', gocui.ModNone, func(g *gocui.Gui, v *gocui.View) error { + log.Log(ERROR, "TODO: re-implement this") if me.logStdout.Visible() { me.logStdout.SetVisible(false) - setOutput(os.Stdout) + // setOutput(os.Stdout) } else { me.logStdout.SetVisible(true) - setOutput(me.logStdout.tk) + // setOutput(me.logStdout.tk) } return nil }) @@ -145,23 +147,11 @@ func addDebugKeys(g *gocui.Gui) { a.B = true a.ActionType = widget.EnableDebug callback <- a - logInfo = true - logVerbose = true - } else { - logInfo = false - logVerbose = false } return nil }) g.SetKeybinding("", gocui.KeyCtrlV, gocui.ModNone, func(g *gocui.Gui, v *gocui.View) error { - if (logVerbose) { - logInfo = false - logVerbose = false - } else { - logInfo = true - logVerbose = true - } return nil }) |
