summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-09 03:21:48 -0600
committerJeff Carr <[email protected]>2025-02-09 03:21:48 -0600
commit5bac0308e55d53e5d1bf0177a1b13751c170598d (patch)
treede9b66868863fd048ef822788f3cc58f74794034 /init.go
parent8d8fc22745e8e5497e3db0a3389c17c3030a230f (diff)
window close works
Diffstat (limited to 'init.go')
-rw-r--r--init.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.go b/init.go
index 8a90270..195f11b 100644
--- a/init.go
+++ b/init.go
@@ -39,6 +39,9 @@ func init() {
// init the config struct default values
Set(&me, "default")
+ // todo: some early output still goes to the /tmp/ file
+ //time.Sleep(200 * time.Millisecond)
+ log.CaptureMode(me.stdout)
// initial stdout window settings
me.stdout.w = 180
@@ -151,6 +154,7 @@ func mainGogui() {
var err error
+ // todo: make this a tmp file that goes away
me.outf, err = os.OpenFile("/tmp/captureMode.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
if err != nil {
log.Info("error opening file:", err)