summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-08 05:16:05 -0600
committerJeff Carr <[email protected]>2025-02-08 05:16:05 -0600
commit8185d8bc1a916980b4c1a1072e1ef78804a0f484 (patch)
tree630b0ebc4e073b09490b6060b57c060a6d34d25c /init.go
parent481fa1121153eea80ccdddadae34afac20cc5655 (diff)
macos iterm2 only seems to work with dark mode
Diffstat (limited to 'init.go')
-rw-r--r--init.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.go b/init.go
index f599a8d..a53076f 100644
--- a/init.go
+++ b/init.go
@@ -10,6 +10,7 @@ package main
import (
"errors"
"os"
+ "runtime"
"runtime/debug"
"time"
@@ -49,6 +50,11 @@ func init() {
me.textbox.wId = -55
me.stdout.wId = -4
+ // macos iterm2 really only works with dark mode right now
+ if runtime.GOOS == "macos" {
+ me.dark = true
+ }
+
// Set(&me, "dense")
me.myTree = tree.New()