Permalink
Browse files

Merge pull request #8 from bitspill/patch-1

Fix isTerminal call on Windows
  • Loading branch information...
azer committed Jul 22, 2018
2 parents d674e51 + ed30908 commit e1f911eed8997b2415de75a82189f1ec5a313dba
Showing with 1 addition and 2 deletions.
  1. +1 −2 standard-output.go
View
@@ -6,13 +6,12 @@ import (
"github.com/azer/is-terminal"
"os"
"strings"
"syscall"
"time"
)
func NewStandardOutput(file *os.File) OutputWriter {
var writer = StandardWriter{
ColorsEnabled: isterminal.IsTerminal(syscall.Stderr),
ColorsEnabled: isterminal.IsTerminal(int(file.Fd())),
Target: file,
}

0 comments on commit e1f911e

Please sign in to comment.