From d2c3db7b58381a919fdf51d2f0a2264c6605ff99 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Feb 2025 03:09:13 -0600 Subject: more work on stdout settings --- structs.go | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 2a406be..6cd9b30 100644 --- a/structs.go +++ b/structs.go @@ -72,14 +72,17 @@ type config struct { // settings for the stdout window type stdout struct { - tk *guiWidget // where to show STDOUT - w int // the width - h int // the width - outputOnTop bool // is the STDOUT window on top? - offscreenW int // where to place the window offscreen - offscreenH int // where to place the window offscreen - offsetW int // the current 'w' offset - offsetH int // the current 'h' offset + tk *guiWidget // where to show STDOUT + w int // the width + h int // the width + outputOnTop bool // is the STDOUT window on top? + 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 } // this is the gocui way -- cgit v1.2.3