Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watnot.UUCP Path: utzoo!watmath!watnot!cagordon From: cagordon@watnot.UUCP (Chris Gordon) Newsgroups: net.sources,net.games Subject: Re: Battleship source for Unix w/curses Message-ID: <11605@watnot.UUCP> Date: Tue, 11-Mar-86 20:15:16 EST Article-I.D.: watnot.11605 Posted: Tue Mar 11 20:15:16 1986 Date-Received: Wed, 12-Mar-86 06:13:42 EST References: <314@drivax.UUCP> <11587@watnot.UUCP> <1358@hpda.UUCP> Reply-To: cagordon@watnot.UUCP (Chris Gordon) Distribution: net Organization: U of Waterloo, Ontario Lines: 48 Xref: watmath net.sources:4522 net.games:2611 Summary: In article <1358@hpda.UUCP> jrg@hpda.UUCP (Jeff Glasson) writes: >In article <11587@watnot.UUCP> cagordon@watnot.UUCP (Chris Gordon) writes: >>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? > >The undefined routines you see are from the AT&T version of curses. >BSD curses does not have those routines. > >Here's a brief description of the routines (maybe someone out there has >BSD versions): > >saveterm: save current modes as "in curses" state. >cbreak: set cbreak mode >beep: ring the terminal's bell >resetterm: set tty modes to "out of curses" state > >Hope this helps, > >Jeff Glasson >Hewlett-Packard ISO >ucbvax!hpda!jrg Someone sent me the BSD versions of these commands. I just #define'd them as so: #define saveterm savetty #define cbreak crmode #define beep() putchar('\7') /* no equivalent */ #define resetterm resetty and all went well... ------------------------------------------------------------------------------- |Chris Gordon University of Waterloo | |watmath!watnot!cagordon | |CSNET:cagordon%watnot@Waterloo.CSNet | | | | "Welcome to the real world. There's so much to learn" | | Mr. Mister | -------------------------------------------------------------------------------