Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!rice!uw-beaver!tektronix!reed!ameiba From: ameiba@reed.UUCP (Keith Steiger) Newsgroups: comp.sources.games.bugs Subject: Cubes 5.1 and control codes Keywords: minor bug fix for cubes Message-ID: <12711@reed.UUCP> Date: 10 May 89 00:43:13 GMT Reply-To: ameiba@reed.UUCP (Keith Steiger) Organization: Reed College, Portland OR (Where the Vax is a game machine) Lines: 14 Well, while happily hacking away at Cubes 5.1, I found that the program doesn't deal with Control-Cs. This is evil. Furthermore, it won't accept any attempts to shell out. This often leaves the player hung, halfway out of the process, with no possibility of killing it. I suggest adding the following line to main() in cubes.c: signal(SIGINT,reallyquit); This makes the computer ask you "Do you really want to quit?" if you hit ^C, and deals with you intelligently if you say yes. It saves a lot of headaches. If a .signature doesn't follow this line, I'm going to rip out Pnews' innards.