Join GitHub today
gui: only 256 color pairs supported even if ncurses supports more #1343
The following screenshot of
WeeChat itself imposes this limit:
The likely reason this limit is set in WeeChat is that when color pairs above 255 would be used in WeeChat through ncurses's
It should be possible to use more color pairs by selecting the color pair separately from attributes: https://invisible-island.net/ncurses/man/curs_attr.3x.html#h2-NOTES.
According to ncurses documentation the support for more than 256 color pairs only exists in ncurses ABI 6 and not ABI 5, which still seems to be used with ncurses 6.1 on Ubuntu etc. Nevertheless, fixing this issue should be possible and would benefit users who have ncurses ABI 6.