summaryrefslogtreecommitdiff
path: root/gocui/keybindings.go
diff options
context:
space:
mode:
Diffstat (limited to 'gocui/keybindings.go')
-rw-r--r--gocui/keybindings.go20
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
})