summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-03 03:45:36 -0600
committerJeff Carr <[email protected]>2025-03-03 03:45:36 -0600
commit9ef16c1bf2bfc1e00163b461779383c809efff9f (patch)
tree2118e9596fbf3dce620766572aa203f87841a334 /structs.go
parentda54c0f039fe35aef01dabeaf6267fd4e3ba377d (diff)
better tree init()
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index c85e859..8b9541c 100644
--- a/structs.go
+++ b/structs.go
@@ -25,7 +25,6 @@ import (
)
var initOnce sync.Once // run initPlugin() only once
-var outf *os.File // hacks for capturing stdout
// It's probably a terrible idea to call this 'me'
// 2025 note: doesn't seem terrible to call this 'me' anymore. notsure.
@@ -87,6 +86,7 @@ type config struct {
starttime time.Time // checks how long it takes on startup
winchW int // used to detect SIGWINCH
winchH int // used to detect SIGWINCH
+ outf *os.File // hacks for capturing stdout
}
// stuff controlling how the mouse works
@@ -112,6 +112,7 @@ type stdout struct {
outputOnTop bool // is the STDOUT window on top?
outputOffscreen bool // is the STDOUT window offscreen?
startOnscreen bool // start the output window onscreen?
+ 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