Skip to content

Commit

Permalink
Merge pull request #8 from bitspill/patch-1
Browse files Browse the repository at this point in the history
Fix isTerminal call on Windows
  • Loading branch information
Azer Koçulu committed Jul 22, 2018
2 parents d674e51 + ed30908 commit e1f911e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions standard-output.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit e1f911e

Please sign in to comment.