Date: Thu, 28 Aug 2008 06:29:02 -0400 From: Thomas Dickey <dickey@radix.net> To: questions@freebsd.org Cc: Christopher Joyner <chris27wjoyner@gmail.com> Subject: Re: curses.h, beep() returns ERR, flash() casuses segment fault. Message-ID: <20080828102902.GA16234@saltmine.radix.net> In-Reply-To: <898452.32176.qm@web56714.mail.re3.yahoo.com> References: <898452.32176.qm@web56714.mail.re3.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org
iD8DBQFItn2DtIqByHxlDocRAstWAJ4smzv3rumuCh/4wA9Du1w5JLZKTgCeJltu
aceVZPuQ6dhcAp0qlg6ZkBk=
=IJS5
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080828102902.GA16234>
