Skip to content

Commit 14f2cd1

Browse files
committed
Add color support for Hyper
1 parent 03cb08b commit 14f2cd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

colors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ import (
2525
)
2626

2727
func HasPosixColorSupport() bool {
28-
return os.Getenv("ANSICON") != "" || os.Getenv("ConEmuANSI") == "ON" || strings.HasPrefix(os.Getenv("TERM"), "xterm") || os.Getenv("SHLVL") != ""
28+
return os.Getenv("ANSICON") != "" || os.Getenv("ConEmuANSI") == "ON" || strings.HasPrefix(os.Getenv("TERM"), "xterm") || os.Getenv("TERM_PROGRAM") == "Hyper" || os.Getenv("SHLVL") != ""
2929
}

0 commit comments

Comments
 (0)