Simon Gomizelj <[email protected]> on Mon, 2013/03/04 17:49:
> I believe I addressed all the criticisms thus far.
> 
> I'll just share this instead of spamming the mailing list with yet
> another patchset.
> 
> https://github.com/vodik/pacman/compare/5770425...master

Tested your patches, works really well so far.

I would like pacman to color the actions it performs. Messages printed by
pre_*() and post_*() functions would be a lot more visible then.

The attached patch is just a "quick and dirty proof of concept.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index d0887cb..468ea38 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -517,8 +517,9 @@ void cb_progress(alpm_progress_t event, const char *pkgname, int percent,
 
 	}
 
-	printf("(%*ld/%*ld) %ls%-*s", digits, (unsigned long)current,
-			digits, (unsigned long)howmany, wcstr, padwid, "");
+	const colstr_t *colstr = &config->colstr;
+	printf("(%*ld/%*ld) %s%ls%s%-*s", digits, (unsigned long)current,
+			digits, (unsigned long)howmany, colstr->title, wcstr, colstr->nc, padwid, "");
 
 	free(wcstr);
 

Attachment: signature.asc
Description: PGP signature



Reply via email to