Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!boris.mscs.mu.edu!gill From: gill@boris.mscs.mu.edu (Vijay (Ender) Gill) Newsgroups: comp.unix.programmer Subject: Re: Keypressed function? Message-ID: <505@spool.mu.edu> Date: 27 Feb 91 23:21:22 GMT References: <27CB871A.2433@ics.uci.edu> Sender: news@spool.mu.edu Organization: Marquette University - Department MSCS Lines: 22 In article <27CB871A.2433@ics.uci.edu> djpadz@bonnie.ics.uci.edu (David Jay Padzensky) writes: [---in turbo pascal there is ---] > Function KeyPressed: Boolean; > >All it does is return true or false based on whether or not a key is >waiting in the input buffer. Is there a (DYNIX) C or Pascal function [--delted---] >Dj Padzensky The FAQ list has this question [7 I think]. However, reading Marc J. Rochkind's book, "Advanced Unix Programming" will help, in particular he gives the code for a `cready' function that tells whether is a char is waiting, and `cget' to get it. That is an excellent book for programming in Unix, and is well worth the money spent. cheers -dicky gill (Violator) -gill@boris.mscs.mu.edu