diff options
Diffstat (limited to 'eventBindings.go')
| -rw-r--r-- | eventBindings.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/eventBindings.go b/eventBindings.go index d869474..33602ba 100644 --- a/eventBindings.go +++ b/eventBindings.go @@ -101,6 +101,16 @@ func theNotsure(g *gocui.Gui, v *gocui.View) error { func theStdout(g *gocui.Gui, v *gocui.View) error { if me.stdout.outputOnTop { + if me.stdout.outputOffscreen { + me.stdout.outputOffscreen = false + log.Info("set stdout off screen here") + relocateStdoutOffscreen() + return nil + } else { + me.stdout.outputOffscreen = true + log.Info("set stdout on screen here") + } + me.stdout.tk.relocateStdout(me.stdout.lastW, me.stdout.lastH) me.stdout.outputOnTop = false me.baseGui.SetViewOnBottom("msg") } else { |
