]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/hanoi.c
ncurses 5.0
[ncurses.git] / test / hanoi.c
index 25d906ea04a7f12e0b37160007012fb75d35b0a3..3ee64b0a0d1453017e05f9271e55fe7c91e053e6 100644 (file)
@@ -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;
 }