From 969e1ab996e79f3e121d0fb3bfd4e91ac7d6f488 Mon Sep 17 00:00:00 2001 From: Ivy Foster Date: Thu, 23 Apr 2020 13:12:03 -0500 Subject: Add NoProgressbar to pacman.conf options This is useful for dumb terminals that do not support escape sequences. Signed-off-by: Ivy Foster Signed-off-by: Allan McRae --- src/pacman/conf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pacman/conf.c') 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 { -- cgit v1.2.3-54-g00ecf