summaryrefslogtreecommitdiff
path: root/eventBindings.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 03:28:05 -0600
committerJeff Carr <[email protected]>2025-02-06 03:28:05 -0600
commit9c548faedacfdfbda09d170c6665fcdb988bd877 (patch)
treefc1c122250cecd5188fb1385a2f436eb959024f4 /eventBindings.go
parentd2c3db7b58381a919fdf51d2f0a2264c6605ff99 (diff)
try to start with STDOUT offscreen
Diffstat (limited to 'eventBindings.go')
-rw-r--r--eventBindings.go10
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 {