diff options
Diffstat (limited to 'cli/cli_dump.cpp')
-rw-r--r-- | cli/cli_dump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/cli_dump.cpp b/cli/cli_dump.cpp index e30f6cc2..10dcd61d 100644 --- a/cli/cli_dump.cpp +++ b/cli/cli_dump.cpp @@ -158,7 +158,7 @@ command(int argc, char *argv[]) #ifdef _WIN32 color = COLOR_OPTION_ALWAYS; #else - color = isatty(1) ? COLOR_OPTION_ALWAYS : COLOR_OPTION_NEVER; + color = isatty(STDERR_FILENO) ? COLOR_OPTION_ALWAYS : COLOR_OPTION_NEVER; pipepager(); #endif } |