X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_tabs.c;h=51850e4cb992febd70e98166d954c1971490e539;hp=68023a328205940287d36801156344aa12f8ae2e;hb=02f1dee48fe8af6ce054388fba739aa4f975004e;hpb=6b4f5830b7910188b532d661f79775306715f67e diff --git a/test/demo_tabs.c b/test/demo_tabs.c index 68023a32..51850e4c 100644 --- a/test/demo_tabs.c +++ b/test/demo_tabs.c @@ -29,10 +29,11 @@ /* * Author: Thomas E. Dickey * - * $Id: demo_tabs.c,v 1.2 2019/02/17 01:01:11 tom Exp $ + * $Id: demo_tabs.c,v 1.4 2019/02/24 00:38:13 tom Exp $ * * A simple demo of tabs in curses. */ +#define USE_TINFO #include "test.priv.h" static void @@ -82,8 +83,10 @@ main(int argc, char *argv[]) cbreak(); if (curses_stops > 0) set_tabsize(curses_stops); +#if HAVE_TIGETNUM tabstop = tigetnum("it"); if (tabstop <= 0) +#endif tabstop = 8; for (row = 0; row < LINES; ++row) { move(row, 0);