curses.h, beep() returns ERR, flash() casuses segment fault.
Thomas Dickey
dickey at radix.net
Thu Aug 28 10:29:04 UTC 2008
On Wed, Aug 27, 2008 at 07:10:40PM -0700, Christopher Joyner wrote:
> I do not get the OK from beep, and flash crashes the program.
> This is my code:
>
> #include <curses.h>
>
> int main(int argc,char** argv)
> {
initscr(); /* see also filter() and newterm() */
> if(beep()!=OK)
//> printf("No OK\n"); fflush(stdout);
printw("No OK\n");
> if(flash()!=OK)
//> printf("No Flash\n"); fflush(stdout);
printw("No Flash\n");
getch();
endwin();
> return 0;
> }
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080828/6a56158e/attachment.pgp
More information about the freebsd-questions
mailing list