Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site topaz.ARPA Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!ihnp4!cbosgd!cbdkc1!desoto!packard!topaz!root From: root@topaz.ARPA (Root) Newsgroups: net.sources Subject: Re: battleships Message-ID: <2339@topaz.ARPA> Date: Fri, 21-Jun-85 02:37:24 EDT Article-I.D.: topaz.2339 Posted: Fri Jun 21 02:37:24 1985 Date-Received: Sun, 23-Jun-85 03:27:49 EDT References: <349@hounx.UUCP> <1847@ut-ngp.UTEXAS> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 20 Keywords: How come, Otis? As distributed, the source of battleships game seems to use a non-standard version of curses. If you make the following changes, you can get it to work. <1> Change the call to "cbreak()", to a call to "crmode()". <2> Change all calls of the form "wattron(mywin,A_REVERSE)" to "wstandout(mywin)" and "wattroff(mywin,A_REVERSE)" to "wstandend(mywin)". <3> Comment out the calls to "flash()". I dont know what this routine does. <4> Having done all this, compile the stuff using the shell command: cc -o ships ships.c -lcurses -ltermcap Have fun..... --Vijay--