From: Jean-Pol.Guillement () math ! univ-nantes ! fr (Jean-Pol Guillement)
To: tru64-unix-managers
Subject: read a single key witout return
Date: Mon, 21 Sep 1998 15:18:58 +0000 [thread overview]
Message-ID: <96078721911976.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1998-09-21 15:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox