Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ucrmath.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!ucbvax!ucdavis!ucrmath!stevo From: stevo@ucrmath.UUCP (Steve Groom) Newsgroups: net.sources,net.games Subject: Re: Battleship source for Unix w/curses Message-ID: <141@ucrmath.UUCP> Date: Mon, 10-Mar-86 19:51:36 EST Article-I.D.: ucrmath.141 Posted: Mon Mar 10 19:51:36 1986 Date-Received: Thu, 13-Mar-86 07:48:08 EST References: <314@drivax.UUCP> <11587@watnot.UUCP> Distribution: net Organization: University of California, Riverside Lines: 35 Xref: watmath net.sources:4536 net.games:2618 > Using the following compile command, I got the following undefines below: > cc -O -o bs bs.c -lcurses -ltermcap > Undefined: > _saveterm > _cbreak > _beep > _resetterm > > Can someone (probably the original poster) help? I got similar messages on our 4.2bsd system. I fixed them by making the following substitutions to the source (hints found by doing "man curses") : savetty() for saveterm() crmode() for cbreak() resetty() for resetterm() To fix beep(), I simply added a dummy procedure at the end of the program that looked like this (hey, I know its a hack, but it works!) : beep(){ } If I decided I *liked* having the terminal make noises at me, I would simply add the code to beep() to make it send a ^G to the screen .... probably something like: wprintw(stdscr,"%c",7); (No warrantys given or implied about the above noisemaking fragment) Steve Groom Univ. of Calif., Riverside {ucla-cs, ucbvax!ucdavis} !ucrmath!stevo /* "waddaya want for nothin' ?!" */