On Sat, Nov 05, 2005 at 02:51:07PM -0500, Jason Lunz <[EMAIL PROTECTED]> was 
heard to say:
> in rxvt-unicode, aptitude doesn't use color. I didn't realize how useful
> the colors were until I tried it without them. :)
> 
> TERM=rxvt works as a workaround (see urxvt(7) for lots of useful info).

  The problem seems to be the code that allows you to set the foreground
and background colors independently.  Because terminals work by allocating
"color pairs" (blah), this requires that the number of color pairs be equal
to the square of the number of colors.  rxvt-unicode has 88 colors and 256
color pairs, so aptitude's new color system is unable to deal with it.

  A sane solution would be to fall back to only supporting the lower
sqrt(COLOR_PAIRS) colors; 16 in this case.

  Daniel

Attachment: signature.asc
Description: Digital signature

Reply via email to