* include term.h from wherever we find ncurses.h
Solaris needs term.h for tigetstr(), but term.h doesn't always live in
/usr/include
* Do not forget about plain curses.h
#include "protos.h"
#include "sort.h"
#include "thread.h"
-#ifndef USE_SLANG_CURSES
+#ifdef HAVE_NCURSESW_NCURSES_H
+#include <ncursesw/term.h>
+#elif defined(HAVE_NCURSES_NCURSES_H)
+#include <ncurses/term.h>
+#else
#include <term.h>
#endif
#ifdef USE_SIDEBAR