* read a single key witout return
@ 1998-09-21 15:18 Jean-Pol.Guillement
0 siblings, 0 replies; only message in thread
From: Jean-Pol.Guillement @ 1998-09-21 15:18 UTC (permalink / raw)
To: tru64-unix-managers
Hello,
In C-programming under D-Unix, is there a better way than the
following to get a single character from the keyboard
without waiting for Return ?
perhaps with iotcl() or tcsetattr() ?
int readkey() {
int c;
system("stty raw -echo");
c = getchar();
system("stty -raw echo");
return(c);
}
Thanks in advance,
Jean-Pol.Guillement@math.univ-nantes.fr
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-09-21 15:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-21 15:18 read a single key witout return Jean-Pol.Guillement
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox