diff options
Diffstat (limited to 'toolkit/gocui/mouse.go')
| -rw-r--r-- | toolkit/gocui/mouse.go | 3 |
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) } |
