Battleship source for Unix w/curses

sma8465 at ritcv.UUCP sma8465 at ritcv.UUCP
Wed Mar 12 05:12:10 AEST 1986


In article <11587 at watnot.UUCP> cagordon at 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?

Well, I'm not the original poster, but I can help.

First, use -ltermlib instead of -ltermcap.  This will clear up all errors
except for _beep (at least it did for me).  You just have to write
your own beep function which prints out a ctrl-G to the terminal.

ex:

beep()
{
   printf("%c",7);    /* beep! */
}

I worked with the curses version and beep was the only thing that didn't
work.  I hope your's works ok.

Steve Abbott
(c) Mad Wabbit Software, Inc.
Webster, New York 14580



More information about the Comp.sources.unix mailing list