On Mon Feb 2, 2026 at 04:04:26 GMT +01, Bill Gray wrote:
>     True.  But I think that on any curses implementation,  you have to 
> look at COLOR_PAIRS.  On PDCursesMod,  that value can be (at most) 32, 
> 256,  4096,  8192,  or 1048576,  depending on whether 5,  8,  12,  13, 
> or 20 bits are available for storing color pairs.

Looking through NetBSD I believe it also clips COLOR_PAIRS to its
internal limit (currently 512).

It's ncurses that behaves differently here (but is IMHO most faithful
to X/Open). On ncurses COLOR_PAIRS is always what's reported for the
terminal via terminfo. How much you can actually address depends on
the API used (COLOR_PAIR() vs. wattr_set() vs. int pointers).

So some ifdefing appears inevitable if you want to get the most out
of your "color pair space".

Best regards,
Robin

-- 
@ii._._.*.._+__.+_+.+...+.+.++..+*+.+._.+...*_*.*.__+__._._.++..+_*.++__+__
.+_..*...+.+_+__.+._.+...*_+_+__._ ...*_ +.+._.+.._+*+_+__._._ .+_..+.+***_
. *_+_+__.+.*.++..+_+.*.__+_ _.+...*_*_+__.++*.+...++..+* +.+.._+__._+_.+..
.++..+*_.*...+*+.+.*_ +*+i2^rj.u#__%uu#_.%uu#_+%uu#_*!+!0a"t1010^t^c^c'0a^#
1010"=d'0a-100000"=d'0auuqq*100+q[_^euu]uq-rq:^/100@oo,+,+,+oqq^t0uq@o*+*!!

Attachment: signature.asc
Description: PGP signature

Reply via email to