[Yum-devel] [PATCH] and RFC: highlighting search terms in search output

James Antill jantill at redhat.com
Thu Oct 18 17:46:12 UTC 2007


 Ok, this patch is fairly big adding a YumTerm class. Mostly derived
from: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/475116

 I've included the mode changes and the color, in the class ... although
the only thing used atm. is bold. The patch also contains the changes
needed to pass the search terms down to listPkgs() etc. so it can be
highlighted.
 This also works on the -v search output (although that looks pretty bad
due to all the debugging info).
 Comments?

 I've attached it and it can be merged from:

git pull http://people.redhat.com/jantill/gits/yum search-term-bold

-- 
James Antill <jantill at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-search-term-bold.patch
Type: text/x-patch
Size: 6697 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20071018/09bca8d7/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20071018/09bca8d7/attachment.pgp 


More information about the Yum-devel mailing list