Re: Bus Error with getch?
Re: Bus Error with getch?
- Subject: Re: Bus Error with getch?
- From: Andre-John Mas <email@hidden>
- Date: Sat, 2 Dec 2006 00:07:10 -0500
Right you are, this works now. Thanks.
On 2-Dec-06, at 00:02 , R. Matthew Emerson wrote:
On Dec 1, 2006, at 11:49 PM, Andre-John Mas wrote:
#include <curses.h>
int main ( int argc, char **argv )
{
getch();
return 0;
}
and compiling with -Wall:
cc getch2.c -Wall -lcurses
gives me no warnings and yet it still crashes. Commenting out getch
() the program no longer crashes.
You have to call initscr() before you can call other curses functions.
You might want to review ncurses(3).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden