From 5964472ec16edf08d1dfc5ed70ea1195f983da82 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 13 Nov 2022 14:41:43 +1100 Subject: [PATCH] hide underscores more --- pkg/gui/style/basic_styles.go | 9 +++++++++ 1 file changed, 9 insertions(+) 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)