Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.sources,net.sources.bugs Subject: Re: battleships Message-ID: <2335@sun.uucp> Date: Sat, 22-Jun-85 03:48:06 EDT Article-I.D.: sun.2335 Posted: Sat Jun 22 03:48:06 1985 Date-Received: Mon, 24-Jun-85 04:07:49 EDT References: <349@hounx.UUCP> <1847@ut-ngp.UTEXAS> Followup-To: net.sources.bugs Organization: Sun Microsystems, Inc. Lines: 25 Xref: watmath net.sources:3035 net.sources.bugs:386 Moving this to net.sources.bugs, where it belongs... > I copied the "battleships" source off net.sources but our > C compiler gagged on the symbol > > A_REVERSE > > (said it was undefined). We run vanilla 4.2BSD Unix. Did I miss part > of the posting? No, but you don't run a system with the "curses/terminfo" package, written by Mark Horton as a replacement for "curses" and "termcap", and provided with System V Release 2. With a little work, that package does run under 4.2BSD (it's an old version of "curses"/"terminfo" and hadn't been tested on 4.2BSD yet); the one thing I remember is that you have to change the SIGTSTP handler to reset the signal handler for SIGTSTP to SIG_DFL before it sends itself a SIGTSTP, or you find yourself in an infinite loop of screen repainting. Of course, the game was probably written for S5R2, so you may get caught by the infamous index/strchr change, or the tty driver differences; as a wise man once said (in the source code of "ex"), "It's so wonderful how we all speak the same language..." Guy Harris