summaryrefslogtreecommitdiff
path: root/keybindings.go
diff options
context:
space:
mode:
Diffstat (limited to 'keybindings.go')
-rw-r--r--keybindings.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/keybindings.go b/keybindings.go
index a4f33dc..5cf8c2f 100644
--- a/keybindings.go
+++ b/keybindings.go
@@ -5,6 +5,7 @@
package main
import (
+ "fmt"
"syscall"
"github.com/awesome-gocui/gocui"
@@ -132,6 +133,15 @@ func addDebugKeys(g *gocui.Gui) {
g.SetKeybinding("", 'L', gocui.ModNone,
func(g *gocui.Gui, v *gocui.View) error {
me.treeRoot.ListWidgets()
+
+ w := me.logStdout.TK.(*guiWidget)
+ msg := fmt.Sprintf("test out %d\n", ecount)
+ msg += fmt.Sprintf("test out %d\n", ecount)
+ msg += fmt.Sprintf("test out %d\n", ecount)
+ w.Write([]byte(msg + msg + msg))
+ w.Write([]byte(msg + msg + msg))
+ w.Write([]byte(msg + msg + msg))
+ w.Write([]byte(msg + msg + msg))
return nil
})