
>>>> * Get keypress * <<<<
Quote:
> How do I read a keypress (char) without having the user to
> press Return??
> System = Unix V.
Hm, set the terminal to raw mode, on HP-UX it will look like this:
#include <sgtty.h>
...
{ char buf[1];
struct sgttyb *ttyio;
gtty(0,ttyio);
(ttyio->sg_flags)|=(RAW);
stty(0,ttyio);
...
read(0,buf,1); /* read one char, don't wait for return */
...
Quote:
}
Walter