X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Flrtest.c;h=9c77577e65e970797160d3fd042b68f25f743515;hp=da12034ce0836a0b596c937de0a29ca80757f5c8;hb=2db461ea0b1b29c142e3000d830b520c946e385b;hpb=92e187a3459ab7ce1613a3684ca6642447c73620 diff --git a/test/lrtest.c b/test/lrtest.c index da12034c..9c77577e 100644 --- a/test/lrtest.c +++ b/test/lrtest.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2005,2010 Free Software Foundation, Inc. * + * Copyright 2019,2020 Thomas E. Dickey * + * Copyright 1998-2010,2017 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 * @@ -34,7 +35,7 @@ * This can't be part of the ncurses test-program, because ncurses rips off the * bottom line to do labels. * - * $Id: lrtest.c,v 1.22 2010/05/01 19:11:55 tom Exp $ + * $Id: lrtest.c,v 1.27 2020/02/02 23:34:34 tom Exp $ */ #include @@ -148,9 +149,9 @@ main( nodelay(stdscr, TRUE); #ifdef TRACE else if (ch == 'T') - trace(0); + curses_trace(0); else if (ch == 't') - trace(TRACE_CALLS | TRACE_ICALLS | TRACE_UPDATE); + curses_trace(TRACE_CALLS | TRACE_ICALLS | TRACE_UPDATE); #endif #ifdef KEY_RESIZE else if (ch == KEY_RESIZE) { @@ -174,8 +175,7 @@ main( refresh(); } - curs_set(1); - endwin(); + stop_curses(); ExitProgram(EXIT_SUCCESS); }