aboutsummaryrefslogtreecommitdiff
path: root/test/lrtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/lrtest.c')
-rw-r--r--test/lrtest.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/lrtest.c b/test/lrtest.c
index da12034ce083..ee510cc4af1d 100644
--- a/test/lrtest.c
+++ b/test/lrtest.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998-2005,2010 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2017,2019 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 +34,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.26 2019/12/14 23:25:29 tom Exp $
*/
#include <test.priv.h>
@@ -148,9 +148,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 +174,7 @@ main(
refresh();
}
- curs_set(1);
- endwin();
+ stop_curses();
ExitProgram(EXIT_SUCCESS);
}