Hi there !
I've got a problem, I just tried to detect a key has been pressed, but it doesn't seem to work, little explanation :
Code:
#include <curses.h> /* And other ;)*/
int main(void)
{
int return_echo;
return_echo=noecho();/* Even if there is this only instruction*/
printf("%d", return_echo);/*optionnal*/
return 0;
}
When I compile it with Wall and everything (gcc), I haven't got any error.
If I try it, I've got a "segmentation fault", noecho() or getch() does the same thing...
I'm disappointed, what can I do
Thanks in advance !