From 1552eedc185e85b46498898e68867afaef308301 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 25 Mar 2025 07:27:37 -0500 Subject: save the output window state --- structs.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index fcd04cf..c9337b1 100644 --- a/structs.go +++ b/structs.go @@ -116,11 +116,10 @@ type stdout struct { disable bool // disable the stdout window. do not change os.Stdout & os.Stderr 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 - outputS []string // the buffer of all the output - pager int // allows the user to page through the buffer + init bool // moves the window offscreen on startup + outputS []string // the buffer of all the output + pager int // allows the user to page through the buffer + changed bool // indicates the user has changed stdout. gocui should remember the state here } // settings for the dropdown window @@ -241,6 +240,7 @@ type guiWidget struct { color *colorT // what color to use colorLast colorT // the last color the widget had defaultColor *colorT // the default colors // TODO: make a function for this instead + isTable bool // is this a table? } // THIS IS GO COMPILER MAGIC -- cgit v1.2.3