Path: utzoo!utgpu!watserv1!watmath!att!occrsh!uokmax!munnari.oz.au!samsung!zaphod.mps.ohio-state.edu!ncar!mephisto!utkcs2!jov From: jov@stc06.ctd.ornl.gov (JONES J P) Newsgroups: comp.os.os9 Subject: ttyfly() for os9? (try#2) Message-ID: <1990Aug30.152825.21217@cs.utk.edu> Date: 30 Aug 90 15:28:25 GMT Sender: news@cs.utk.edu (USENET News System) Reply-To: jonesjp@ornl.gov (JONES J P) Organization: Oak Ridge National Lab Lines: 14 For simple interactive programs, I usually like to write a function (char ttyfly() -- get one on the fly) which returns a character from the keyboard if one is available, and 0 otherwise (non-blocking). Since this is non-standard, it usually requires kicking around the OS a little. Under some systems this is easy, and on others (e.g. VMS) it is horrid. Does anyone have a ttyfly() or something similar for OS9? If not, can you point me in the right direction? If anyone cares, I can trade my VMS C ttyfly() (which took over 200 lines of code). Judd Jones -- Oak Ridge National Lab -- jonesjp@ornl.gov (Now permanently IMHO brain-damaged former VMS user)