RE: Cursing at curses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



O and don't forget endwin()

if your screen gets all messed up type
reset 
(but you knew that)

On Thursday, February 13, 2003 1:32 PM, Rokicki, Andrew  wrote:
> 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



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux