]> granicus.if.org Git - nethack/commit
curses A_ITALIC build fix
authorPatR <rankin@nethack.org>
Mon, 5 Sep 2022 21:40:41 +0000 (14:40 -0700)
committerPatR <rankin@nethack.org>
Mon, 5 Sep 2022 21:40:41 +0000 (14:40 -0700)
commit4aefe3dae0124582cd459575b032dc56a069fc88
tree39fa95eb515c45f41d79aedb8eb5b7bc8e9c9be4
parente818395a55def993c4e7ff729d0395476804571d
curses A_ITALIC build fix

My /usr/include/curses.h has various A_attribute macros but A_ITALIC
isn't one of them.  Compiling cursmisc.c failed because one of the
uses of that wasn't guarded by #ifdef A_ITALIC.  Instead of adding the
ommitted #if, substitute A_UNDERLINE for A_ITALIC when that's missing.

The select attribute menu when adding a menu color or a status hilite
now shows an entry for italic that's underlined (as expected) but the
underline entry itself does not display any sort of attribute.  I
didn't pursue that.
win/curses/cursmisc.c