X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_tabs.c;h=f63850dfd6dce7738c266980ca47fb988c87aba2;hp=68023a328205940287d36801156344aa12f8ae2e;hb=9b4c4abadc0a29999c5ddad5aa8d769fee28d687;hpb=6b4f5830b7910188b532d661f79775306715f67e diff --git a/test/demo_tabs.c b/test/demo_tabs.c index 68023a32..f63850df 100644 --- a/test/demo_tabs.c +++ b/test/demo_tabs.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2019 Free Software Foundation, Inc. * + * Copyright 2019,2020 Thomas E. Dickey * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -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.5 2020/02/02 23:34:34 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);