clear();
noecho();
cbreak();
-#ifdef NCURSES_VERSION
+ tv->mrow = 24; tv->mcol = 80;
getmaxyx(stdscr, tv->mrow, tv->mcol);
-#else
- tv->mrow = 80; tv->mcol = 40;
-#endif
tv->wgoto = newwin(3, TV_MAX_GOTO + 10, 10, 5);
tv->whelp = newwin(27, 40, 5, 5);
tv->color_for = TV_COLOR_MAPQ;
tv_destroy(tv);
return 0;
}
-#else // #ifdef NCURSES_VERSION
-#warning "The ncurses library is unavailable; tview is disabled."
+#else // #ifdef _HAVE_CURSES
+#include <stdio.h>
+#warning "No curses library is available; tview is disabled."
int bam_tview_main(int argc, char *argv[])
{
fprintf(stderr, "[bam_tview_main] The ncurses library is unavailable; tview is not compiled.\n");