curses fix: map our normal color pairs into the 0-7 range instead of 1-8,
authorNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 12 Mar 2002 22:47:17 +0000 (22:47 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Tue, 12 Mar 2002 22:47:17 +0000 (22:47 +0000)
commitc621415ae5b6ff4bbe59d3912e13721b817f7d6d
tree5d761f1472ba8014a6d20460e6f6e91912f505de
parent3cbc25baf80636279d4bf9a46a333e1389e07a84
curses fix: map our normal color pairs into the 0-7 range instead of 1-8,
in order to make our pairs fit on terminals such as dtterm where COLOR_PAIRS=8.
map the white/blue color pair onto 8 instead of 9, but only if that slot
is available; fall back on white/black otherwise.

it seems there may be an off-by-one error in the color pair manpages for
the various curses packages (?) if not, our 0 entry is unusable, but that's
the DIM_BLACK color and we don't use it anyway.
citadel/ChangeLog
citadel/screen.c