summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-05 01:08:12 -0600
committerJeff Carr <[email protected]>2024-02-05 01:08:12 -0600
commit8f9e47c11711b629ff7351c0626c85d3e8aa0979 (patch)
treeee9eb56b0b9b4ddeb952ef8fa5be007a1f1bd926 /structs.go
parent145bad6c9aadf8bb398131ea42da24a536dc72bb (diff)
stdout window remembers where it was
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/structs.go b/structs.go
index cd5bdb2..365a43c 100644
--- a/structs.go
+++ b/structs.go
@@ -30,7 +30,7 @@ var showHelp bool = true
var redoWidgets bool = true
// This is the window that is currently active
-var currentWindow *tree.Node
+// var currentWindow *tree.Node
type config struct {
baseGui *gocui.Gui // the main gocui handle
@@ -40,8 +40,10 @@ type config struct {
myTree *tree.TreeInfo
ctrlDown *tree.Node // shown if you click the mouse when the ctrl key is pressed
- currentWindow *tree.Node // this is the current tab or window to show
+ currentWindow *guiWidget // this is the current tab or window to show
logStdout *tree.Node // where to show STDOUT
+ startOutputW int
+ startOutputH int
helpLabel *gocui.View
// this is a floating widget that we show whenever the user clicks on a