]> git.donarmstrong.com Git - samtools.git/blobdiff - bam_tview.c
* samtools-0.1.5-11 (r408)
[samtools.git] / bam_tview.c
index 2442994d3708912daf0823c1114eb0368d6961de..441a1b4c9581a628735713cfc1464e87c548ff95 100644 (file)
@@ -192,11 +192,8 @@ tview_t *tv_init(const char *fn, const char *fn_fa)
        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;
@@ -387,8 +384,9 @@ int bam_tview_main(int argc, char *argv[])
        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");