diff options
Diffstat (limited to 'lib/colorize-impl.c')
-rw-r--r-- | lib/colorize-impl.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/colorize-impl.c b/lib/colorize-impl.c index b7c0a3ff..e9d5c730 100644 --- a/lib/colorize-impl.c +++ b/lib/colorize-impl.c @@ -27,13 +27,8 @@ /* Return non-zero if we should highlight matches in output to file descriptor FD. */ int -should_colorize (int fd) +should_colorize (void) { - if (! isatty (fd)) - return 0; - else - { - char const *t = getenv ("TERM"); - return t && strcmp (t, "dumb") != 0; - } + char const *t = getenv ("TERM"); + return t && strcmp (t, "dumb") != 0; } |