Skip to content

Commit 1278276

Browse files
committed
feat: adds color support to tmux-256color termenv
1 parent 64bfeba commit 1278276

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ bin/
33
.secrets/
44
Taskfile.yml
55
go.work*
6+
tags

runner/run-task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func isTTY() bool {
5656

5757
func hasANSISupport() bool {
5858
term := os.Getenv("TERM")
59-
return strings.Contains(term, "xterm") || strings.Contains(term, "screen") || strings.Contains(term, "vt100")
59+
return strings.Contains(term, "xterm") || strings.Contains(term, "screen") || strings.Contains(term, "vt100") || strings.Contains(term, "tmux")
6060
}
6161

6262
func printCommand(writer io.Writer, prefix, lang, cmd string) {

0 commit comments

Comments
 (0)