fix ^Z
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Sat, 25 Jun 1983 17:53:18 +0000 (09:53 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Sat, 25 Jun 1983 17:53:18 +0000 (09:53 -0800)
SCCS-vsn: games/canfield/canfield/canfield.c 4.8

usr/src/games/canfield/canfield/canfield.c

index 778f037..4145a2a 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (c) 1982 Regents of the University of California */
 
 /* Copyright (c) 1982 Regents of the University of California */
 
-static char sccsid[] = "@(#)canfield.c 4.7 %G%";
+static char sccsid[] = "@(#)canfield.c 4.8 %G%";
 
 /*
  * The canfield program
 
 /*
  * The canfield program
@@ -1256,6 +1256,7 @@ suspend()
 #endif
        raw();
        noecho();
 #endif
        raw();
        noecho();
+       wrefresh(curscr);
 }
 
 /*
 }
 
 /*
@@ -1596,6 +1597,7 @@ main(argc, argv)
        signal(SIGHUP, cleanup);
        signal(SIGTERM, cleanup);
        initscr();
        signal(SIGHUP, cleanup);
        signal(SIGTERM, cleanup);
        initscr();
+       signal(SIGTSTP, SIG_DFL);               /* avoid tstp in curses */
        raw();
        noecho();
        initall();
        raw();
        noecho();
        initall();