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
>
> int main () {
> int help;
> //put this in \/
> initscr();
> help=getch();
>
try this.
#include
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:[EMAIL PROTECTED]] wrote:
> I am tr
Hi,
The ncurses HOWTO (http://en.tldp.org/HOWTO/NCURSES-Programming-HOWTO/)
says that curses programs typically start with a call to initscr().
Venkatesh
>
> I am trying to get curses working correctly under LINUX 8.0, but am
> having SIGSEGV errors.
>
> A simple test program:
>
> #include
I am trying to get curses working correctly under LINUX 8.0, but am
having SIGSEGV errors.
A simple test program:
#include
int main () {
int help;
help=getch();
printf("%c\n",help);
}
compiled with
gcc tst2.c -lcurses
yields segmentation fault. What am I doing wrong