diff options
-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) |