Changeset 78a024a


Ignore:
Timestamp:
Jul 16, 2011, 10:48:11 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
375df9c
Parents:
b711711
git-author:
David Benjamin <davidben@mit.edu> (07/16/11 22:34:53)
git-committer:
David Benjamin <davidben@mit.edu> (07/16/11 22:48:11)
Message:
Clamp the number of color pairs even on ncurses ABI 6

We should be able to handle color pairs past 256 on ABI 6 (which is most
distributions but Debian-based ones), but there are more changes that
need to be done. We cannot use COLOR_PAIR() and OR it into an attr_t.
This means we also can't use wbkgdset and must use wbkgrdset and
setcchar, but that does not seem to be sufficient. It's possible ncurses
is buggy here.

For now, just use the same hack as, either way, we are not ready for
ext-colors yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r8219374 r78a024a  
    732732  return MIN(COLOR_PAIRS, 256);
    733733#else
    734   return COLOR_PAIRS;
     734  /* TODO: Fix the rest of our code to handle color pairs past 256 and
     735   * ext-color. */
     736  return MIN(COLOR_PAIRS, 256);
    735737#endif
    736738}
Note: See TracChangeset for help on using the changeset viewer.