From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078721911976.tru64-unix-managers.marc@archive.invalid> From: Jean-Pol.Guillement () math ! univ-nantes ! fr (Jean-Pol Guillement) Date: Mon, 21 Sep 1998 15:18:58 +0000 To: tru64-unix-managers Subject: read a single key witout return X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078721911976 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