diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-11-13 14:41:43 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-11-13 14:41:43 +1100 |
commit | 5964472ec16edf08d1dfc5ed70ea1195f983da82 (patch) | |
tree | 2576656c65c136b8613e6ee92640a4305f1b0b32 /pkg | |
parent | c77c02c879c3991f8b264e89818676cde3965c27 (diff) |
hide underscores more
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/style/basic_styles.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/gui/style/basic_styles.go b/pkg/gui/style/basic_styles.go index e37e90001..61db335e3 100644 --- a/pkg/gui/style/basic_styles.go +++ b/pkg/gui/style/basic_styles.go @@ -1,11 +1,20 @@ package style import ( + "os" "text/template" "github.com/gookit/color" ) +// See https://github.com/xtermjs/xterm.js/issues/4238 +// VSCode is soon to fix this in an upcoming update. +// Once that's done, we can scrap the HIDE_UNDERSCORES variable +// duplicating because init() isn't always called when we need it +func init() { + HIDE_UNDERSCORES = os.Getenv("TERM_PROGRAM") == "vscode" +} + var ( FgWhite = FromBasicFg(color.FgWhite) FgLightWhite = FromBasicFg(color.FgLightWhite) |