X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_termcap.c;h=a3733c67d1c287b17f9d13395aefc2f0a9344d09;hp=8c7b05b90b482276037e998c3951d9d62272785c;hb=f3eb40315f9e5eff503a172aed6d325b4e1f20c6;hpb=92e187a3459ab7ce1613a3684ca6642447c73620 diff --git a/test/demo_termcap.c b/test/demo_termcap.c index 8c7b05b9..a3733c67 100644 --- a/test/demo_termcap.c +++ b/test/demo_termcap.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2005-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 2005-2010,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey * - * $Id: demo_termcap.c,v 1.13 2010/05/01 22:04:08 tom Exp $ + * $Id: demo_termcap.c,v 1.14 2011/01/15 21:41:27 tom Exp $ * * A simple demo of the termcap interface. */ @@ -165,7 +165,11 @@ demo_terminfo(NCURSES_CONST char *name) NCURSES_CONST char *cap; printf("Terminal type \"%s\"\n", name); +#if HAVE_SETUPTERM setupterm(name, 1, (int *) 0); +#else + setterm(name); +#endif if (b_opt) { for (n = 0;; ++n) {