projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 5.9 - patch 20110521
[ncurses.git]
/
test
/
redraw.c
diff --git
a/test/redraw.c
b/test/redraw.c
index f62c098b794d264bcc4b4e5b65499c56dfb0619a..96c6b0f308b67a78d0438085fee300e92f0c2e32 100644
(file)
--- a/
test/redraw.c
+++ b/
test/redraw.c
@@
-1,5
+1,5
@@
/****************************************************************************
/****************************************************************************
- * Copyright (c) 2006-20
07,2010
Free Software Foundation, Inc. *
+ * Copyright (c) 2006-20
10,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 *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@
-26,7
+26,7
@@
* authorization. *
****************************************************************************/
/*
* authorization. *
****************************************************************************/
/*
- * $Id: redraw.c,v 1.
5 2010/05/01 22:04:08
tom Exp $
+ * $Id: redraw.c,v 1.
7 2011/05/21 18:38:35
tom Exp $
*
* Demonstrate the redrawwin() and wredrawln() functions.
* Thomas Dickey - 2006/11/4
*
* Demonstrate the redrawwin() and wredrawln() functions.
* Thomas Dickey - 2006/11/4
@@
-71,7
+71,7
@@
test_redraw(WINDOW *win)
keypad(win, TRUE);
getmaxyx(win, max_y, max_x);
getbegyx(win, beg_y, beg_x);
keypad(win, TRUE);
getmaxyx(win, max_y, max_x);
getbegyx(win, beg_y, beg_x);
- while (!done) {
+ while (!done
&& win != 0
) {
ch = wgetch(win);
getyx(win, y, x);
switch (ch) {
ch = wgetch(win);
getyx(win, y, x);
switch (ch) {
@@
-113,7
+113,7
@@
test_redraw(WINDOW *win)
* using mvcur(). It is ifdef'd for NCURSES, since X/Open does
* not define the case where the old location is unknown.
*/
* using mvcur(). It is ifdef'd for NCURSES, since X/Open does
* not define the case where the old location is unknown.
*/
-
system("date"
);
+
IGNORE_RC(system("date")
);
mvcur(-1, -1, y, x);
break;
#endif
mvcur(-1, -1, y, x);
break;
#endif