aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-11-23 22:13:39 +0800
committerJia Tan <jiat0218@gmail.com>2023-12-22 20:02:06 +0800
commit7dc466d62155cb7442aa5e10633e084ed384360d (patch)
tree07953ae25a5ff29cae3ce5ef83a758fda5124158
parentxz: Create separate is_tty() function. (diff)
downloadxz-7dc466d62155cb7442aa5e10633e084ed384360d.tar.xz
xz: Use is_tty() in message.c.
-rw-r--r--src/xz/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/message.c b/src/xz/message.c
index abf30adc..dec0addd 100644
--- a/src/xz/message.c
+++ b/src/xz/message.c
@@ -119,7 +119,7 @@ message_init(void)
// exception, even if --verbose was not used, user can send SIGALRM
// to make us print progress information once without automatic
// updating.
- progress_automatic = isatty(STDERR_FILENO);
+ progress_automatic = is_tty(STDERR_FILENO);
// Commented out because COLUMNS is rarely exported to environment.
// Most users have at least 80 columns anyway, let's think something