diff options
| author | Jeff Carr <[email protected]> | 2024-11-13 21:32:44 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-13 21:32:44 -0600 |
| commit | 368c25107a9343d3368182efbe203acb4fbf8d5e (patch) | |
| tree | c44de9dbb34ef01daac6e77ea598a687457dc560 /keybindings.go | |
| parent | 2ace17294c0a20f889bb1e800a1c35e3cbd995df (diff) | |
test writes to stdout widget kinda work
Diffstat (limited to 'keybindings.go')
| -rw-r--r-- | keybindings.go | 10 |
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 }) |
