try this. #include <curses.h> int main () { int help; //put this in \/ initscr(); help=getch(); printf("%c\n",help); } compiled with gcc -o tst tst2.c -lcurses ./tst On Thursday, February 13, 2003 10:01 AM, Randy Gillis [SMTP:rgillis@toptech.com] wrote: > I am trying to get curses working correctly under LINUX 8.0, but am > having SIGSEGV errors. > > A simple test program: > > #include <curses.h> > > int main () { > int help; > help=getch(); > printf("%c\n",help); > } > > compiled with > > gcc tst2.c -lcurses > > yields segmentation fault. What am I doing wrong? > Cursed curses... > > > > > > > _______________________________________________ > Redhat-devel-list mailing list > Redhat-devel-list@redhat.com > https://listman.redhat.com/mailman/listinfo/redhat-devel-list _______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@redhat.com https://listman.redhat.com/mailman/listinfo/redhat-devel-list