summaryrefslogtreecommitdiffstats
path: root/src/pacman/conf.h
diff options
context:
space:
mode:
authorCarson Black <uhhadd@gmail.com>2020-04-15 02:51:03 +0200
committerAllan McRae <allan@archlinux.org>2020-04-15 03:05:55 +0200
commitb323528491470ff77815fea97289c2cbf7e29689 (patch)
tree3307d4ba9eb8a920f5fdde9360617e67e75cd00e /src/pacman/conf.h
parent6ba250e4001740ca428226abf157b25aa121c7bf (diff)
downloadpacman-b323528491470ff77815fea97289c2cbf7e29689.tar.gz
pacman-b323528491470ff77815fea97289c2cbf7e29689.tar.xz
Dull version colour numbers in summary
Version colour numbers are dulled in the non-verbose transaction summary when colours are enabled. To prevent a regression, this patch also adds handling of strings with ANSI codes to string_length as to not break the transaction summary's output functions when colour codes are in the package name strings. Signed-off-by: Carson Black <uhhadd@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.h')
-rw-r--r--src/pacman/conf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/conf.h b/src/pacman/conf.h
index d954e637..e1df24b7 100644
--- a/src/pacman/conf.h
+++ b/src/pacman/conf.h
@@ -31,6 +31,7 @@ typedef struct __colstr_t {
const char *meta;
const char *warn;
const char *err;
+ const char *faint;
const char *nocolor;
} colstr_t;