summaryrefslogtreecommitdiff
path: root/toolkit/gocui/mouse.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-26 20:56:25 -0500
committerJeff Carr <[email protected]>2023-04-26 20:56:25 -0500
commite3cf42f1da9ec0ed07a7f346a0ce9c9ff10295c1 (patch)
tree0fe6fe28f11ccb3d1d6a989349071928f4a7ccb9 /toolkit/gocui/mouse.go
parent5b217fa23af4e5040d5f09d9840ddc426a315960 (diff)
gocui: log() output works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/mouse.go')
-rw-r--r--toolkit/gocui/mouse.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/toolkit/gocui/mouse.go b/toolkit/gocui/mouse.go
index 591691d..2cba5c6 100644
--- a/toolkit/gocui/mouse.go
+++ b/toolkit/gocui/mouse.go
@@ -52,6 +52,9 @@ func layout(g *gocui.Gui) error {
if widgetView, _ := g.View("msg"); widgetView == nil {
log(logInfo, "create output widget now", maxX, maxY, mx, my)
makeOutputWidget(g, "this is a create before a mouse click")
+ if (me.logStdout != nil) {
+ setOutput(me.logStdout)
+ }
} else {
log(logInfo, "output widget already exists", maxX, maxY, mx, my)
}