Article View: comp.unix.programmer
Article #1327Keypress with time-out.
From: Duncan Sinclair
Date: Sat, 01 Dec 1990 19:10
Date: Sat, 01 Dec 1990 19:10
16 lines
1034 bytes
1034 bytes
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
Technical Details
Message-ID:
<7101@vanuata.cs.glasgow.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!mcsun!ukc!strath-cs!cs.glasgow.ac.uk!sinclairShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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