summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 0f115c25..e1f90398 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -1107,9 +1107,12 @@ int main(int argc, char *argv[])
cleanup(1);
}
- /* disable progressbar if the output is redirected */
if(!isatty(fileno(stdout))) {
+ /* disable progressbar if the output is redirected */
config->noprogressbar = 1;
+ } else {
+ /* install signal handler to update output width */
+ install_winch_handler();
}
/* Priority of options: