From 9c548faedacfdfbda09d170c6665fcdb988bd877 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Feb 2025 03:28:05 -0600 Subject: try to start with STDOUT offscreen --- eventBindings.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'eventBindings.go') 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 { -- cgit v1.2.3