]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/demo_tabs.c
ncurses 6.3 - patch 20220827
[ncurses.git] / test / demo_tabs.c
index 68023a328205940287d36801156344aa12f8ae2e..2fa79287694b4e0a0bfeaccae4e3f872a1aca045 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 2019 Free Software Foundation, Inc.                        *
+ * Copyright 2019-2020,2022 Thomas E. Dickey                                *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
 /*
  * 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.7 2022/08/13 21:02:25 tom Exp $
  *
  * A simple demo of tabs in curses.
  */
-#include "test.priv.h"
+#define USE_CURSES
+#define USE_TINFO
+#include <test.priv.h>
 
 static void
 usage(void)
@@ -82,8 +84,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);