diff options
author | Ivy Foster <escondida@iff.ink> | 2020-04-23 20:12:03 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-04-29 05:57:53 +0200 |
commit | 969e1ab996e79f3e121d0fb3bfd4e91ac7d6f488 (patch) | |
tree | 49868a5b50768c9b3a43f4ff9740529be869f321 /src/pacman/conf.c | |
parent | 24392223752480b9088321ad0f914118d0346e55 (diff) | |
download | pacman-969e1ab996e79f3e121d0fb3bfd4e91ac7d6f488.tar.gz pacman-969e1ab996e79f3e121d0fb3bfd4e91ac7d6f488.tar.xz |
Add NoProgressbar to pacman.conf options
This is useful for dumb terminals that do not support escape
sequences.
Signed-off-by: Ivy Foster <escondida@iff.ink>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r-- | src/pacman/conf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 76c93aca..becbd03e 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -583,6 +583,8 @@ static int _parse_options(const char *key, char *value, config->color = isatty(fileno(stdout)) ? PM_COLOR_ON : PM_COLOR_OFF; enable_colors(config->color); } + } else if(strcmp(key, "NoProgressBar") == 0) { + config->noprogressbar = 1; } else if(strcmp(key, "DisableDownloadTimeout") == 0) { config->disable_dl_timeout = 1; } else { |