From 7e7c64f513460cfb391e2fc558e6fdbc83faa54d Mon Sep 17 00:00:00 2001 From: Xavion Date: Mon, 28 Mar 2016 09:35:37 +1100 Subject: Add colour to group selection dialog Colour the group name in 'blue' and the repository names in 'magenta'. Signed-off-by: Xavion Signed-off-by: Allan McRae --- src/pacman/sync.c | 7 ++++--- src/pacman/util.c | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/pacman') diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 8ac5f570..8b306034 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -557,9 +557,10 @@ static int process_group(alpm_list_t *dbs, const char *group, int error) if(config->print == 0) { char *array = malloc(count); int n = 0; - colon_printf(_n("There is %d member in group %s:\n", - "There are %d members in group %s:\n", count), - count, group); + const colstr_t *colstr = &config->colstr; + colon_printf(_n("There is %d member in group %s%s%s:\n", + "There are %d members in group %s%s%s:\n", count), + count, colstr->groups, group, colstr->title); select_display(pkgs); if(!array) { ret = 1; diff --git a/src/pacman/util.c b/src/pacman/util.c index d924bf36..0155493f 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -1256,8 +1256,9 @@ static void display_repo_list(const char *dbname, alpm_list_t *list, unsigned short cols) { const char *prefix = " "; + const colstr_t *colstr = &config->colstr; - colon_printf(_("Repository %s\n"), dbname); + colon_printf(_("Repository %s%s\n"), colstr->repo, dbname); list_display(prefix, list, cols); } -- cgit v1.2.3-70-g09d2