SCCS-vsn: games/worm/worm.c 5.6
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)worm.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)worm.c 5.6 (Berkeley) %G%";
signal(SIGALRM, wake);
signal(SIGINT, leave);
signal(SIGQUIT, leave);
signal(SIGALRM, wake);
signal(SIGINT, leave);
signal(SIGQUIT, leave);
signal(SIGTSTP, suspend); /* process control signal */
signal(SIGTSTP, suspend); /* process control signal */
initscr();
crmode();
noecho();
initscr();
crmode();
noecho();
clear();
move(23, 0);
refresh();
clear();
move(23, 0);
refresh();
- printf("Well you ran into something and the game is over.\n");
+ printf("Well, you ran into something and the game is over.\n");
printf("Your final score was %d\n", score);
leave();
}
printf("Your final score was %d\n", score);
leave();
}
refresh();
endwin();
fflush(stdout);
refresh();
endwin();
fflush(stdout);
kill(getpid(), SIGTSTP);
signal(SIGTSTP, suspend);
kill(getpid(), SIGTSTP);
signal(SIGTSTP, suspend);
-#else
- sh = getenv("SHELL");
- if (sh == NULL)
- sh = "/bin/sh";
- system(sh);
-#endif
crmode();
noecho();
setup();
crmode();
noecho();
setup();