Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!europa.asd.contel.com!gatech!mcnc!duke!jit From: jit@slic.cellbio.duke.edu Newsgroups: comp.unix.programmer Subject: Non-destructive read of keyboard buffer Message-ID: <22368@duke.cs.duke.edu> Date: 7 Jun 91 17:03:28 GMT Sender: news@duke.cs.duke.edu Organization: Duke University Medical Center, Dept. of Cell Biology Lines: 15 Nntp-Posting-Host: slic.cellbio.duke.edu Originator: jit@slic.cellbio.duke.edu Hi, I am trying to find out if a keyboard buffer is empty but not reading it because I don't want to get stuck if there isn't any buffered. (on ATT SVR3) Is there a 'standard' way on unix to do this ? (I am currently reading using non-canonical mode with vmin=0, then ungetc if there is any. Hopefully there is an easier way.) Thanks in advance. -- -------------------------------------------------------- Jit Keong Tan | internet: jit@slic.cellbio.duke.edu (919) 684-8098 | bitnet : tan00001@dukemc.bitnet