trapd00r/apt-cache-search-color — pull request #1 by herzi (2012-01-31 10:14:51+00:00)
Title: please merge my changes

I've modified your script to be a bit more useful for me. The modified version makes terminals more happy when they don't support the full 256 color range from xterm-256color, it fixes the iteration over the color array and improves the regular expression that you use for selecting.