libgnt/libgnt

Rewrite ncurses searching.

2018-11-23, Elliott Sales de Andrade
33e8f6ea4cbd
Rewrite ncurses searching.

First, look for ncursesw, via pkg-config files and the include/library.
Then fallback to plain ncurses, via the same.

Also, try to determine the header to include in a more portable way that
doesn't assume /usr/include as base path.
#include <ncurses.h>
int main()
{
int ch;
initscr();
noecho();
cbreak();
refresh();
WINDOW *win = newpad(20, 30);
box(win, 0, 0);
prefresh(win, 0, 0, 0, 0, 19, 29);
doupdate();
while ((ch = getch())) {
printw("%d ", ch);
refresh();
}
endwin();
return 0;
}