mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-04 10:28:03 -05:00
Add colour to group selection dialog
Colour the group name in 'blue' and the repository names in 'magenta'. Signed-off-by: Xavion <Xavion (dot) 0 (at) Gmail (dot) com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
7d1ea0b814
commit
7e7c64f513
@ -557,9 +557,10 @@ static int process_group(alpm_list_t *dbs, const char *group, int error)
|
|||||||
if(config->print == 0) {
|
if(config->print == 0) {
|
||||||
char *array = malloc(count);
|
char *array = malloc(count);
|
||||||
int n = 0;
|
int n = 0;
|
||||||
colon_printf(_n("There is %d member in group %s:\n",
|
const colstr_t *colstr = &config->colstr;
|
||||||
"There are %d members in group %s:\n", count),
|
colon_printf(_n("There is %d member in group %s%s%s:\n",
|
||||||
count, group);
|
"There are %d members in group %s%s%s:\n", count),
|
||||||
|
count, colstr->groups, group, colstr->title);
|
||||||
select_display(pkgs);
|
select_display(pkgs);
|
||||||
if(!array) {
|
if(!array) {
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
@ -1256,8 +1256,9 @@ static void display_repo_list(const char *dbname, alpm_list_t *list,
|
|||||||
unsigned short cols)
|
unsigned short cols)
|
||||||
{
|
{
|
||||||
const char *prefix = " ";
|
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);
|
list_display(prefix, list, cols);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user