Skip to content

Commit 4217fee

Browse files
jmooringbep
authored andcommitted
common/terminal: Enable color output on windows
Closes #8209
1 parent fad5796 commit 4217fee

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

common/terminal/colors.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package terminal
1717
import (
1818
"fmt"
1919
"os"
20-
"runtime"
2120
"strings"
2221

2322
isatty "github.com/mattn/go-isatty"
@@ -41,10 +40,6 @@ func PrintANSIColors(f *os.File) bool {
4140
// IsTerminal return true if the file descriptor is terminal and the TERM
4241
// environment variable isn't a dumb one.
4342
func IsTerminal(f *os.File) bool {
44-
if runtime.GOOS == "windows" {
45-
return false
46-
}
47-
4843
fd := f.Fd()
4944
return os.Getenv("TERM") != "dumb" && (isatty.IsTerminal(fd) || isatty.IsCygwinTerminal(fd))
5045
}

0 commit comments

Comments
 (0)