Merge pull request #705 from harshavardhana/pr_out_add_stderr_to_support_piped_nocolor_output

Add stderr to support piped nocolor output
This commit is contained in:
Harshavardhana
2015-05-27 16:53:02 -07:00
+1 -1
View File
@@ -78,7 +78,7 @@ var (
currThemeName = func() string {
theme := GetDefaultThemeName()
// if not a TTY disable color
if !isatty(os.Stdout.Fd()) {
if !isatty(os.Stdout.Fd()) || !isatty(os.Stderr.Fd()) {
return "nocolor"
}
return theme