Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!mcsun!ukc!strath-cs!cs.glasgow.ac.uk!sinclair From: sinclair@cs.glasgow.ac.uk (Duncan Sinclair) Newsgroups: comp.unix.programmer Subject: Keypress with time-out. Summary: How do a (maybe) get a key-press? Keywords: select tty Message-ID: <7101@vanuata.cs.glasgow.ac.uk> Date: 1 Dec 90 19:10:52 GMT Distribution: comp Organization: Computing Sci, Glasgow Univ, Scotland Lines: 16 Simple, easy question: Can anyone supply me with portable code which will "poll" my tty for (say) five seconds, and return any keypress which it gets? This is mainly for SunOS, but we also have some SYSV-type systems... Thanks, -- Duncan Sinclair | Try one sinclair@cs.glasgow.ac.uk Computing Science Research Student | of these: sinclair@uk.ac.glasgow.cs University of Glasgow |..!mcsun!ukc!uk.ac.glasgow.cs!sinclair Quote: "It takes a smart man to know when he's stupid." -- Barney Rubble