aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/test/hanoi.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/test/hanoi.c')
-rw-r--r--contrib/ncurses/test/hanoi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/ncurses/test/hanoi.c b/contrib/ncurses/test/hanoi.c
index 25d906ea04a7..3ee64b0a0d14 100644
--- a/contrib/ncurses/test/hanoi.c
+++ b/contrib/ncurses/test/hanoi.c
@@ -14,7 +14,7 @@
*
* Date: 05.Nov.90
*
- * $Id: hanoi.c,v 1.15 1997/10/18 20:11:20 tom Exp $
+ * $Id: hanoi.c,v 1.16 1999/10/23 15:01:01 tom Exp $
*/
#include <test.priv.h>
@@ -118,8 +118,10 @@ unsigned char AutoFlag = 0;
fprintf(stderr, "Min screen length 24 lines\n");
return EXIT_FAILURE;
}
- if(AutoFlag)
+ if(AutoFlag) {
+ curs_set(0);
leaveok(stdscr, TRUE); /* Attempt to remove cursor */
+ }
InitTiles(NTiles);
DisplayTiles();
if(AutoFlag) {
@@ -148,7 +150,6 @@ unsigned char AutoFlag = 0;
}
}
}
- curs_set(1);
endwin();
return EXIT_SUCCESS;
}