Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!ukma!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!killer!wybbs!wyn386!mikef From: mikef@wyn386.UUCP (Mike Faber) Newsgroups: comp.lang.c Subject: Re: Delay for a fraction of a second in C Summary: Hello Message-ID: <178@wyn386.UUCP> Date: 7 Nov 88 15:50:00 GMT References: <2804@ingr.UUCP> <965@goofy.megatest.UUCP> <696@picuxa.UUCP> Organization: Wynalda Litho Inc, Rockford, MI Lines: 19 If you wanted to be fancy (and don't need type ahead) you could flush the stdin buffer, set term.c_iflag(?) &= ~ICANON, and term.c_cc[VTIME] = (# of tenths you wanted tyo wait), and read from stdin (getchar()).. But only if you didn;t need the type ahead... IF all else fails, follow plumbers rule #1: If it dont fit, force it. If it cbreaks(), it didn't belong there in the first place... Or something like that... -- _ _ | My employer and sysop do not think, (/ (/ _ _ _ _ | so they cannot share my opinions. (/) /\_(/_(/_/|_)_/ \_/ | Joe C Programmer (mikef@wynalda.uucp) work (| (| | Michael Faber (sleepy@wybbs.uucp) play