Re: curses.h, beep() returns ERR, flash() casuses segment fault.

2008-08-28 Thread Thomas Dickey
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) //

curses.h, beep() returns ERR, flash() casuses segment fault.

2008-08-27 Thread Christopher Joyner
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) { if(beep()!=OK) printf(No OK\n); fflush(stdout); if(flash()!=OK) printf(No Flash\n); fflush(stdout); return 0; } In Love in Jesus Christ,

Re: curses.h, beep() returns ERR, flash() casuses segment fault.

2008-08-27 Thread Polytropon
Good morning! On Wed, 27 Aug 2008 19:10:40 -0700 (PDT), Christopher Joyner [EMAIL PROTECTED] 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) { if(beep()!=OK) printf(No OK\n);

Re: curses.h, beep() returns ERR, flash() casuses segment fault.

2008-08-27 Thread Daniel Molina Wegener
On Wednesday 27 August 2008 22:10:40 Christopher Joyner wrote: I do not get the OK from beep, and flash crashes the program. This is my code: First, take a look on the manual page... #include curses.h int main(int argc,char** argv) { if(beep()!=OK) printf(No OK\n);