Skip to content

Commit

Permalink
Change again
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Feb 17, 2017
1 parent 2f18a9f commit 73f6724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion color.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var (
// or not. This is a global option and affects all colors. For more control
// over each color block use the methods DisableColor() individually.
NoColor = os.Getenv("TERM") == "dumb" ||
(!isatty.IsTerminal(os.Stdout.Fd()) || !isatty.IsCygwinTerminal(os.Stdout.Fd()))
(!isatty.IsTerminal(os.Stdout.Fd()) && !isatty.IsCygwinTerminal(os.Stdout.Fd()))

// Output defines the standard output of the print functions. By default
// os.Stdout is used.
Expand Down

0 comments on commit 73f6724

Please sign in to comment.