From 96cb52f3efdf16d966a7913db1cd4c9800da049f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Feb 2025 03:33:27 -0600 Subject: stdout window hides on startup --- structs.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 6cd9b30..9deb246 100644 --- a/structs.go +++ b/structs.go @@ -79,10 +79,11 @@ type stdout struct { outputOffscreen bool // is the STDOUT window offscreen? // offscreenW int // where to place the window offscreen // offscreenH int // where to place the window offscreen - lastW int // the last 'w' location (used to move from offscreen to onscreen) - lastH int // the last 'h' location (used to move from offscreen to onscreen) - mouseOffsetW int // the current 'w' offset - mouseOffsetH int // the current 'h' offset + lastW int // the last 'w' location (used to move from offscreen to onscreen) + lastH int // the last 'h' location (used to move from offscreen to onscreen) + mouseOffsetW int // the current 'w' offset + mouseOffsetH int // the current 'h' offset + init bool // moves the window offscreen on startup } // this is the gocui way -- cgit v1.2.3