]> granicus.if.org Git - nethack/commit
fix use_inverse (aka wc_inverse) for curses
authorPatR <rankin@nethack.org>
Mon, 14 Oct 2019 09:28:27 +0000 (02:28 -0700)
committerPatR <rankin@nethack.org>
Mon, 14 Oct 2019 09:28:27 +0000 (02:28 -0700)
commit32e2d7cfc5ec367fcf12b3e6aff10bc08298d74c
treef6f14e7fe15b2422c40869e8c44903eded173ad4
parent027ce7c8b9c04f2ad64632a107536cd173dfb07f
fix use_inverse (aka wc_inverse) for curses

Highlighting for monsters shown due to extended monster detection and
for lava shown in black and white didn't work because that keys off
of 'iflags.use_inverse' (actually a macro for 'iflags.wc_inverse') and
curses wasn't enabling that window-capability option.  To be fair, it
was probably unconditional at the time the curses interface was first
developed.  It checked for whether a monster was supposed to be drawn
with inverse highlighting but wouldn't draw it that way because the
flag was always false.  Inverse b&w lava is relatively new and curses
hadn't been taught about it.

Various other things such as pets (if hilite_pet is on) and object
piles (if hilite_pile is on) get highlighted with inverse video when
use_color is off, regardless of whether use_inverse is on or off.
That's probably a bug.
doc/fixes36.3
src/options.c
win/curses/cursinit.c
win/curses/cursmain.c