From: zak@csd4.csd.uwm.edu (Zachary S Smith) Subject: Re: Ncurses, how do I... Date: 17 Aug 1993 22:10:23 GMT
> There s no kbhit(), you need to call cbreak() before you call getch() this
> will return single keystrokes.
Might anyone know why this little program puts the cursor on the 1st line
when run?
#include <curses.h>
#include <stdio.h>
main ()
{
initscr();
crmode();
printf("%c\n",getch());
nocrmode();
endwin();
}
.. Or how to prevent it?
-- Zak Smith zak@csd4.csd.uwm.edu 414-966-3551 voice OS2 & LINUX